[maemo-commits] [maemo-commits] r14762 - in projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian: . patches

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Nov 12 11:11:50 EET 2007
Author: kihamala
Date: 2007-11-12 11:11:48 +0200 (Mon, 12 Nov 2007)
New Revision: 14762

Added:
   projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/patches/12-remove-match-in-unregister.patch
Modified:
   projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/changelog
Log:
making fix for the match leak


Modified: projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/changelog
===================================================================
--- projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/changelog	2007-11-12 09:08:12 UTC (rev 14761)
+++ projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/changelog	2007-11-12 09:11:48 UTC (rev 14762)
@@ -1,3 +1,9 @@
+dbus-glib (0.74-0osso2fix4) experimental; urgency=low
+
+  * Plug leaking of D-Bus matches. Fixes: NB#75691
+
+ -- Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>  Mon, 12 Nov 2007 11:09:28 +0200
+
 dbus-glib (0.74-0osso2fix3) experimental; urgency=low
 
   * Fix dbus_g_proxy_call to handle the zero return value. Fixes: NB#66881

Added: projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/patches/12-remove-match-in-unregister.patch
===================================================================
--- projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/patches/12-remove-match-in-unregister.patch	2007-11-12 09:08:12 UTC (rev 14761)
+++ projects/haf/tags/dbus-glib/0.74-0osso2fix4/debian/patches/12-remove-match-in-unregister.patch	2007-11-12 09:11:48 UTC (rev 14762)
@@ -0,0 +1,18 @@
+diff -pur dbus-glib-0.74/dbus/dbus-gproxy.c dbus-glib-0.74.new/dbus/dbus-gproxy.c
+--- dbus-glib-0.74/dbus/dbus-gproxy.c	2007-04-20 19:36:09.000000000 +0300
++++ dbus-glib-0.74.new/dbus/dbus-gproxy.c	2007-11-02 15:50:06.249556712 +0200
+@@ -1059,6 +1059,14 @@ dbus_g_proxy_manager_unregister (DBusGPr
+     {
+       g_hash_table_destroy (manager->proxy_lists);
+       manager->proxy_lists = NULL;
++
++      /* remove the match added in dbus_g_proxy_manager_register */
++      dbus_bus_remove_match (manager->connection,
++                          "type='signal',sender='" DBUS_SERVICE_DBUS
++			  "',path='" DBUS_PATH_DBUS
++			  "',interface='" DBUS_INTERFACE_DBUS
++			  "',member='NameOwnerChanged'",
++			  NULL);
+     }
+ 
+   g_free (tri);


More information about the maemo-commits mailing list