mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-19 00:40:36 +01:00
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.
This commit is contained in:
parent
ded3a8efb1
commit
087140dfc4
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue