glmemory: Fix transfer_pbo memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=744977
This commit is contained in:
Vasilis Liaskovitis 2015-02-23 16:13:31 +01:00 committed by Tim-Philipp Müller
parent 0ad168a258
commit e10a2f8922

View file

@ -1090,6 +1090,8 @@ _destroy_gl_objects (GstGLContext * context, GstGLMemory * gl_mem)
if (gl_mem->pbo) if (gl_mem->pbo)
gl->DeleteBuffers (1, &gl_mem->pbo); gl->DeleteBuffers (1, &gl_mem->pbo);
if (gl_mem->transfer_pbo)
gl->DeleteBuffers (1, &gl_mem->transfer_pbo);
} }
static void static void