vkswapper/vkutils: Fix gerror memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=762842
This commit is contained in:
Vineeth TM 2016-02-29 10:38:32 +09:00 committed by Sebastian Dröge
parent d258b06013
commit 55060ee6ce
2 changed files with 2 additions and 0 deletions

View file

@ -1036,5 +1036,6 @@ _on_window_draw (GstVulkanWindow * window, GstVulkanSwapper * swapper)
if (!_render_buffer_unlocked (swapper, swapper->current_buffer, &error))
GST_ERROR_OBJECT (swapper, "Failed to redraw buffer %p %s",
swapper->current_buffer, error->message);
g_clear_error (&error);
RENDER_UNLOCK (swapper);
}

View file

@ -233,6 +233,7 @@ gst_vulkan_ensure_element_data (gpointer element,
if (!gst_vulkan_instance_open (*instance_ptr, &error)) {
GST_ELEMENT_ERROR (element, RESOURCE, NOT_FOUND,
("Failed to create vulkan instance"), ("%s", error->message));
g_clear_error (&error);
return FALSE;
}
}