dbus/glib dbus-gmain.c,1.39,1.40
David Zeuthen
david at freedesktop.org
Mon Apr 18 20:35:29 PDT 2005
Update of /cvs/dbus/dbus/glib
In directory gabe:/tmp/cvs-serv6238/glib
Modified Files:
dbus-gmain.c
Log Message:
2005-04-18 David Zeuthen <davidz at 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.
Index: dbus-gmain.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-gmain.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- dbus-gmain.c 13 Apr 2005 14:10:21 -0000 1.39
+++ dbus-gmain.c 19 Apr 2005 03:35:26 -0000 1.40
@@ -191,6 +191,7 @@
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 @@
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 @@
cs->message_queue_source = NULL;
g_source_destroy (source);
+ g_source_unref (source);
}
g_main_context_unref (cs->context);
More information about the dbus-commit
mailing list