(trunk gtk) #5204 "Transmission GTK client crashes on start" -- another possible fix ;)

This commit is contained in:
Jordan Lee 2011-10-11 20:32:15 +00:00
parent ab0f563ddc
commit 6ec4aec13a
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}