diff options
author | Eion Robb <eion@robbmob.com> | 2008-01-07 00:45:29 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2008-01-07 00:45:29 +0300 |
commit | 42d0b4b7d21bc2c93ff92038e64bad12f0330201 (patch) | |
tree | a1f0debc6f7cc79abd9cf9cd9253b502ae736b0e /skype_messaging_carbon.c | |
parent | 401ada39e2dd5d02dc76bd5f7efbd2c0a137341b (diff) |
Fix for Adium disconnection crashes
Diffstat (limited to 'skype_messaging_carbon.c')
-rw-r--r-- | skype_messaging_carbon.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/skype_messaging_carbon.c b/skype_messaging_carbon.c index e7c4c06..12ac7a7 100644 --- a/skype_messaging_carbon.c +++ b/skype_messaging_carbon.c @@ -108,7 +108,8 @@ skype_connect() { gboolean is_skype_running = FALSE; - static_pool = initAutoreleasePool(); + if (!static_pool) + static_pool = initAutoreleasePool(); is_skype_running = IsSkypeRunning(); @@ -133,16 +134,11 @@ skype_connect() static void skype_disconnect() -{ - //TODO: Use MPTerminateTask to kill the runloop - +{ connected_to_skype = FALSE; DisconnectFromSkype(); RemoveSkypeDelegate(); RunCurrentEventLoop(1); - - if (static_pool) - destroyAutoreleasePool(static_pool); } static void |