mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
Fix leaks of dbus proxy and conn
This commit is contained in:
parent
3895b39d60
commit
a8a57d0024
1 changed files with 3 additions and 0 deletions
|
@ -493,6 +493,9 @@ gtr_dbus_add_torrent( const char * filename )
|
|||
G_TYPE_INVALID );
|
||||
if( err )
|
||||
g_message( "err: %s", err->message );
|
||||
|
||||
g_object_unref( proxy );
|
||||
dbus_g_connection_unref( conn );
|
||||
#endif
|
||||
return success;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue