mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
gl/wayland: Memory leak when display couldn't connect
When trying to create a wayland display, it may fail because there is not actually display to connect. It this case NULL is returned but the created instance is not freed. This patch unrefs the failed display. https://bugzilla.gnome.org/show_bug.cgi?id=793483
This commit is contained in:
parent
06ae49f525
commit
1784f62895
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ gst_gl_display_wayland_new (const gchar * name)
|
|||
} else {
|
||||
GST_INFO ("Failed to open Wayland display connection.");
|
||||
}
|
||||
gst_object_unref (ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue