vaapisink: don't leak GL texture.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Nicolas Dufresne 2011-08-26 15:44:46 -04:00 committed by Gwenole Beauchesne
parent 8866a7c223
commit c432e82e44

View file

@ -231,6 +231,11 @@ gst_vaapisink_iface_init(GType type)
static void static void
gst_vaapisink_destroy(GstVaapiSink *sink) gst_vaapisink_destroy(GstVaapiSink *sink)
{ {
if (sink->texture) {
g_object_unref(sink->texture);
sink->texture = NULL;
}
if (sink->display) { if (sink->display) {
g_object_unref(sink->display); g_object_unref(sink->display);
sink->display = NULL; sink->display = NULL;