[Bug 692691] Dangling pointer when doing allocation query on a flushing queue

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 28 22:49:56 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=692691
  GStreamer | gstreamer (core) | 1.x

--- Comment #3 from Alexander Schrab <alexas at axis.com> 2013-01-29 06:49:51 UTC ---
I agree with you.. The thought hit me as well, but at the same time I didn't
want to make too much of an operation in the code. I will make a patch that
reffes queries. Question is what to do with the queuearray.c stuff? It is
obviously broken, but on the other hand it might be better to just remove if
noone uses it (and take a look at why it happens to work in the few places it
is used).

(In reply to comment #2)
> A unit test would be nice :)
> 
> I wonder if it wouldn't be better/cleaner to just ref/unref the query while
> it's in the queue then?

-- 
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