From e10a2f8922f8e207b6879d964e0413acf37290fd Mon Sep 17 00:00:00 2001 From: Vasilis Liaskovitis Date: Mon, 23 Feb 2015 16:13:31 +0100 Subject: [PATCH] glmemory: Fix transfer_pbo memory leak https://bugzilla.gnome.org/show_bug.cgi?id=744977 --- gst-libs/gst/gl/gstglmemory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/gstglmemory.c b/gst-libs/gst/gl/gstglmemory.c index 6b71329f67..f9407900d4 100644 --- a/gst-libs/gst/gl/gstglmemory.c +++ b/gst-libs/gst/gl/gstglmemory.c @@ -1090,6 +1090,8 @@ _destroy_gl_objects (GstGLContext * context, GstGLMemory * gl_mem) if (gl_mem->pbo) gl->DeleteBuffers (1, &gl_mem->pbo); + if (gl_mem->transfer_pbo) + gl->DeleteBuffers (1, &gl_mem->transfer_pbo); } static void