From: Jonas Larsson Date: Wed, 28 Aug 2019 18:24:01 +0000 (-0700) Subject: eglimage: Fix memory leak X-Git-Tag: 1.16.2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=238294992bb0443648c5c467925ab2e834119b74;p=platform%2Fupstream%2Fgst-plugins-base.git eglimage: Fix memory leak Also free the GstEGLImage struct allocated by g_new0. Fixes #661 --- diff --git a/gst-libs/gst/gl/egl/gsteglimage.c b/gst-libs/gst/gl/egl/gsteglimage.c index 7efb183..85fbefa 100644 --- a/gst-libs/gst/gl/egl/gsteglimage.c +++ b/gst-libs/gst/gl/egl/gsteglimage.c @@ -227,6 +227,8 @@ _gst_egl_image_free (GstMiniObject * object) (GstGLContextThreadFunc) _gst_egl_image_free_thread, image); gst_object_unref (image->context); } + + g_free (image); } static GstMiniObject *