]> granicus.if.org Git - transmission/commitdiff
Fix leaks of dbus proxy and conn
authorMukund Sivaraman <muks@mukund.org>
Thu, 14 Aug 2008 10:58:37 +0000 (10:58 +0000)
committerMukund Sivaraman <muks@mukund.org>
Thu, 14 Aug 2008 10:58:37 +0000 (10:58 +0000)
gtk/util.c

index 006768804e8adfdc656fe31b0a8f71ebf41714d1..e738c612bcba0906d658f8fcc2a7cca0196729f2 100644 (file)
@@ -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;
 }