From: Jordan Lee Date: Tue, 11 Oct 2011 20:32:15 +0000 (+0000) Subject: (trunk gtk) #5204 "Transmission GTK client crashes on start" -- another possible... X-Git-Tag: 2.50b1~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ec4aec13a1293bbdfba1409b57f6475d0a7e535;p=transmission (trunk gtk) #5204 "Transmission GTK client crashes on start" -- another possible fix ;) --- diff --git a/gtk/tr-core.c b/gtk/tr-core.c index 8fc62093a..3319c2f93 100644 --- a/gtk/tr-core.c +++ b/gtk/tr-core.c @@ -1415,8 +1415,11 @@ gtr_inhibit_hibernation( guint * cookie ) } /* cleanup */ - g_variant_unref( response ); - g_object_unref( connection ); + if( response != NULL ) + g_variant_unref( response ); + if( connection != NULL ) + g_object_unref( connection ); + return success; }