mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
(trunk gtk) #5204 "Transmission GTK client crashes on start" -- another possible fix ;)
This commit is contained in:
parent
ab0f563ddc
commit
6ec4aec13a
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue