[Cogl] [PATCH 4/4] gst-video-sink: Clean up the texture resources on dispose
Neil Roberts
neil at linux.intel.com
Fri Mar 8 09:33:13 PST 2013
It looks like the frame textures that the sink owns would have leaked
so this patch makes sure to clean them up.
---
cogl-gst/cogl-gst-video-sink.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cogl-gst/cogl-gst-video-sink.c b/cogl-gst/cogl-gst-video-sink.c
index a633edf..8de2fb5 100644
--- a/cogl-gst/cogl-gst-video-sink.c
+++ b/cogl-gst/cogl-gst-video-sink.c
@@ -1006,6 +1006,8 @@ cogl_gst_video_sink_dispose (GObject *object)
self = COGL_GST_VIDEO_SINK (object);
priv = self->priv;
+ clear_frame_textures (self);
+
if (priv->renderer)
{
priv->renderer->deinit (self);
--
1.7.11.3.g3c3efa5
More information about the Cogl
mailing list