mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
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
This commit is contained in:
parent
0840c08cf1
commit
ac31160dfc
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue