[Bug 762999] New: Memory leak in qmlglsink
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Mar 2 17:34:00 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=762999
Bug ID: 762999
Summary: Memory leak in qmlglsink
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: serge.borovkov at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 322889
--> https://bugzilla.gnome.org/attachment.cgi?id=322889&action=edit
Fix memory leak
There is a memory leak with opengl contexts.
There is 2 context being created:
this->priv->other_context = gst_gl_context_new_wrapped
(this->priv->display, gl_handle, platform, gl_api);
widget->priv->context = gst_gl_context_new (widget->priv->display);
Sink acquires them via qt_item_get_qt_context/qt_item_get_context which do
gst_object_ref before returning object.
The attachment fixes the issue on my side. Context get properly deleted and
associated thread quits. I am not sure though if my attachment would work in
all cases - if window is hidden opengl context would be lost. But this case is
already not handled by qmlglsink so I did not make any changes).
--
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