[cogl/wip/cogl-gst-1.x: 24/29] gst-video-sink: Clean up the texture resources on dispose
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-gst-1.x: 24/29] gst-video-sink: Clean up the texture resources on dispose
- Date: Mon, 18 Mar 2013 15:59:46 +0000 (UTC)
commit aae163a39a996e93d6e0844904382a7d10c4605d
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]