From: Víctor Manuel Jáquez Leal Date: Tue, 10 Oct 2017 12:01:59 +0000 (+0200) Subject: libs: display: egl: free leaked memory X-Git-Tag: 1.19.3~503^2~803 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac31160dfca62398ce8a9399ed182573e7362b50;p=platform%2Fupstream%2Fgstreamer.git libs: display: egl: free leaked memory The EGL VAAPI display forgot to release the egl display, context and proxied VAAPI display. https://bugzilla.gnome.org/show_bug.cgi?id=773453 --- diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c index fd5814e..883257a 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c @@ -286,6 +286,11 @@ gst_vaapi_display_egl_finalize (GObject * object) * proxied display share the same vaDisplay */ GST_VAAPI_DISPLAY_VADISPLAY (object) = NULL; + egl_object_replace (&dpy->egl_display, NULL); + egl_object_replace (&dpy->egl_context, NULL); + + gst_vaapi_display_replace (&dpy->display, NULL); + G_OBJECT_CLASS (gst_vaapi_display_egl_parent_class)->finalize (object); }