diff options
author | David Zeuthen <davidz@redhat.com> | 2005-04-19 03:35:26 +0000 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2005-04-19 03:35:26 +0000 |
commit | 087140dfc4fef43a29e502e073f19d0c07c97fce (patch) | |
tree | c39c08f80bab87ae2ae583a228eb567908f9c235 /glib/dbus-gmain.c | |
parent | ded3a8efb1162126a79a81a786073c37087c3388 (diff) |
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.
Diffstat (limited to 'glib/dbus-gmain.c')
-rw-r--r-- | glib/dbus-gmain.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/dbus-gmain.c b/glib/dbus-gmain.c index 1843f224..b824f01d 100644 --- a/glib/dbus-gmain.c +++ b/glib/dbus-gmain.c @@ -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); |