[Bug 732445] aggregator: Many invalid memory access to destroyed GSources in the unit test

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jun 30 03:40:22 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=732445
  GStreamer | gst-plugins-bad | git

--- Comment #7 from Sebastian Dröge (slomo) <slomo at coaxion.net> 2014-06-30 10:40:18 UTC ---
(In reply to comment #5)
> (In reply to comment #2)
> > Review of attachment 279587 [details] [details]:
> > 
> > ::: gst-libs/gst/base/gstaggregator.c
> > @@ +382,3 @@
> > +_destroy_gsource (GSource * source)
> > +{
> > +  g_source_destroy (source);
> > 
> > Don't you additionally have to unref the source? Otherwise looks good
> 
> In g_source_attach_unlocked it increases the refcount of the source and in
> g_main_context_invoke_full it was g_source_unref ing, so we actually own the
> refs at this point.


Yes, that's why I think it should be
> g_source_destroy (source);
> g_source_unref (source);

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list