[cogl/wip/cogl-gst] gst-video-sink: Clean up the texture resources on dispose



commit a055215512396c070e2b89614a73bb07a990cb95
Author: Neil Roberts <neil linux intel com>
Date:   Fri Mar 8 17:20:54 2013 +0000

    gst-video-sink: Clean up the texture resources on dispose
    
    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 files changed, 2 insertions(+), 0 deletions(-)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]