mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
vkswapper/vkutils: Fix gerror memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=762842
This commit is contained in:
parent
d258b06013
commit
55060ee6ce
2 changed files with 2 additions and 0 deletions
|
@ -1036,5 +1036,6 @@ _on_window_draw (GstVulkanWindow * window, GstVulkanSwapper * swapper)
|
||||||
if (!_render_buffer_unlocked (swapper, swapper->current_buffer, &error))
|
if (!_render_buffer_unlocked (swapper, swapper->current_buffer, &error))
|
||||||
GST_ERROR_OBJECT (swapper, "Failed to redraw buffer %p %s",
|
GST_ERROR_OBJECT (swapper, "Failed to redraw buffer %p %s",
|
||||||
swapper->current_buffer, error->message);
|
swapper->current_buffer, error->message);
|
||||||
|
g_clear_error (&error);
|
||||||
RENDER_UNLOCK (swapper);
|
RENDER_UNLOCK (swapper);
|
||||||
}
|
}
|
||||||
|
|
|
@ -233,6 +233,7 @@ gst_vulkan_ensure_element_data (gpointer element,
|
||||||
if (!gst_vulkan_instance_open (*instance_ptr, &error)) {
|
if (!gst_vulkan_instance_open (*instance_ptr, &error)) {
|
||||||
GST_ELEMENT_ERROR (element, RESOURCE, NOT_FOUND,
|
GST_ELEMENT_ERROR (element, RESOURCE, NOT_FOUND,
|
||||||
("Failed to create vulkan instance"), ("%s", error->message));
|
("Failed to create vulkan instance"), ("%s", error->message));
|
||||||
|
g_clear_error (&error);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue