]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
2005-04-18 David Zeuthen <davidz@redhat.com>
authorDavid Zeuthen <davidz@redhat.com>
Tue, 19 Apr 2005 03:35:26 +0000 (03:35 +0000)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 19 Apr 2005 03:35:26 +0000 (03:35 +0000)
* glib/dbus-gmain.c (io_handler_destroy_source):
(timeout_handler_destroy_source, connection_setup_free):
Also unref the source to avoid memory leaks.

ChangeLog
glib/dbus-gmain.c

index 486d57d245164c8d8ebdb3d363aa78c08f2008c7..ff548d35d484f6586768832834d0e505be97ac6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-18  David Zeuthen  <davidz@redhat.com>
+
+       * glib/dbus-gmain.c (io_handler_destroy_source): 
+       (timeout_handler_destroy_source, connection_setup_free): 
+       Also unref the source to avoid memory leaks.
+
 2005-04-13  David Zeuthen  <davidz@redhat.com>
 
        * bus/config-parser.c (bus_config_parser_new): Bump this to a
index 1843f2247a0b0d739ea0de69a059d960e4546b26..b824f01d635258b11993de237ee9a87462081d76 100644 (file)
@@ -191,6 +191,7 @@ io_handler_destroy_source (void *data)
       handler->source = NULL;
       handler->cs->ios = g_slist_remove (handler->cs->ios, handler);
       g_source_destroy (source);
+      g_source_unref (source);
     }
 }
 
@@ -328,6 +329,7 @@ timeout_handler_destroy_source (void *data)
       handler->source = NULL;
       handler->cs->timeouts = g_slist_remove (handler->cs->timeouts, handler);
       g_source_destroy (source);
+      g_source_unref (source);
     }
 }
 
@@ -411,6 +413,7 @@ connection_setup_free (ConnectionSetup *cs)
       cs->message_queue_source = NULL;
 
       g_source_destroy (source);
+      g_source_unref (source);
     }
   
   g_main_context_unref (cs->context);