diff options
Diffstat (limited to 'ext/pulse')
-rw-r--r-- | ext/pulse/pulseprobe.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pulse/pulseprobe.c b/ext/pulse/pulseprobe.c index a25585bd..59a250be 100644 --- a/ext/pulse/pulseprobe.c +++ b/ext/pulse/pulseprobe.c @@ -263,7 +263,7 @@ gst_pulseprobe_new (GObject * object, GObjectClass * klass, guint prop_id, GstPulseProbe *c = NULL; c = g_new (GstPulseProbe, 1); - c->object = g_object_ref (object); + c->object = object; /* We don't inc the ref counter here to avoid a ref loop */ c->server = g_strdup (server); c->enumerate_sinks = sinks; c->enumerate_sources = sources; @@ -293,8 +293,6 @@ gst_pulseprobe_free (GstPulseProbe * c) g_list_foreach (c->devices, (GFunc) g_free, NULL); g_list_free (c->devices); - g_object_unref (c->object); - g_free (c); } |