eglimage: Fix memory leak
authorJonas Larsson <ljonas@google.com>
Wed, 28 Aug 2019 18:24:01 +0000 (11:24 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 8 Sep 2019 18:19:49 +0000 (18:19 +0000)
Also free the GstEGLImage struct allocated by g_new0.

Fixes #661

gst-libs/gst/gl/egl/gsteglimage.c

index 7efb183..85fbefa 100644 (file)
@@ -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 *