component: Fix ref leak
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 11 Aug 2014 18:12:53 +0000 (14:12 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Mon, 11 Aug 2014 18:22:18 +0000 (14:22 -0400)
agent/component.c

index 93b60d4..57282ae 100644 (file)
@@ -1003,6 +1003,7 @@ component_source_prepare (GSource *source, gint *timeout_)
  done:
 
   agent_unlock_and_emit (agent);
+  g_object_unref (agent);
 
   /* We can’t be sure if the ComponentSource itself needs to be dispatched until
    * poll() is called on all the child sources. */