summaryrefslogtreecommitdiffstats
path: root/glib/dbus-gmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'glib/dbus-gmain.c')
-rw-r--r--glib/dbus-gmain.c3
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);