From ac31160dfca62398ce8a9399ed182573e7362b50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 10 Oct 2017 14:01:59 +0200 Subject: [PATCH] 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 --- gst-libs/gst/vaapi/gstvaapidisplay_egl.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.7.4