Commit b3638c63 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête

nicesrc: fix a leak spotted by asan

parent 18522d7a
...@@ -331,6 +331,12 @@ gst_nice_src_dispose (GObject *object) ...@@ -331,6 +331,12 @@ gst_nice_src_dispose (GObject *object)
} }
src->outbufs = NULL; src->outbufs = NULL;
if (src->idle_source) {
g_source_destroy (src->idle_source);
g_source_unref(src->idle_source);
}
src->idle_source = NULL;
G_OBJECT_CLASS (gst_nice_src_parent_class)->dispose (object); G_OBJECT_CLASS (gst_nice_src_parent_class)->dispose (object);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment