From c432e82e441a6e39a29bd94a9a1998aa4eb0a438 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 26 Aug 2011 15:44:46 -0400 Subject: [PATCH] vaapisink: don't leak GL texture. Signed-off-by: Gwenole Beauchesne --- gst/vaapi/gstvaapisink.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c index 252d5f2..c2ba3ab 100644 --- a/gst/vaapi/gstvaapisink.c +++ b/gst/vaapi/gstvaapisink.c @@ -231,6 +231,11 @@ gst_vaapisink_iface_init(GType type) static void gst_vaapisink_destroy(GstVaapiSink *sink) { + if (sink->texture) { + g_object_unref(sink->texture); + sink->texture = NULL; + } + if (sink->display) { g_object_unref(sink->display); sink->display = NULL; -- 2.7.4