commit | 3b44e50b4437050f515251cf1a9b8705ddbc4763 | [log] [tgz] |
---|---|---|
author | Jonas Larsson <ljonas@google.com> | Wed Aug 28 11:24:01 2019 -0700 |
committer | Jonas Larsson <ljonas@google.com> | Thu Aug 29 10:28:58 2019 -0700 |
tree | a564b0f4be8817b5e35f19591105af46e0805bc8 | |
parent | ede4f26c3530a1852fca716f386d9ba3d3b94757 [diff] |
eglimage: Fix memory leak Also free the GstEGLImage struct allocated by g_new0. Fixes #661 Cherry picked from upstream master: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/commit/94984e13a9208b0b6d69dea597f42b225ef1f784 Change-Id: I790e5ab89cdf3e7584a5f0a02950e8d0fd237b48
diff --git a/gst-libs/gst/gl/egl/gsteglimage.c b/gst-libs/gst/gl/egl/gsteglimage.c index d020aa6..498c623 100644 --- a/gst-libs/gst/gl/egl/gsteglimage.c +++ b/gst-libs/gst/gl/egl/gsteglimage.c
@@ -143,6 +143,8 @@ (GstGLContextThreadFunc) _gst_egl_image_free_thread, image); gst_object_unref (image->context); } + + g_free (image); } static GstMiniObject *