diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2016-02-29 10:33:45 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-02-29 09:50:25 +0200 |
commit | e821582c13ddebe3606e9d856bccffcb1c0d8b7b (patch) | |
tree | d84676ad44b203daf21a94338c416653958e033b /ext | |
parent | 14521dc77441c26efb82352a17e405c299ffbb71 (diff) |
vksink: Fix GError memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=762842
Diffstat (limited to 'ext')
-rw-r--r-- | ext/vulkan/vksink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/vulkan/vksink.c b/ext/vulkan/vksink.c index ec359cac2..1552155a6 100644 --- a/ext/vulkan/vksink.c +++ b/ext/vulkan/vksink.c @@ -256,6 +256,7 @@ gst_vulkan_sink_change_state (GstElement * element, GstStateChange transition) gst_vulkan_instance_create_device (vk_sink->instance, &error))) { GST_ELEMENT_ERROR (vk_sink, RESOURCE, NOT_FOUND, ("Failed to create vulkan device"), ("%s", error->message)); + g_clear_error (&error); return GST_STATE_CHANGE_FAILURE; } @@ -269,6 +270,7 @@ gst_vulkan_sink_change_state (GstElement * element, GstStateChange transition) if (!gst_vulkan_window_open (vk_sink->window, &error)) { GST_ELEMENT_ERROR (vk_sink, RESOURCE, NOT_FOUND, ("Failed to open window"), ("%s", error->message)); + g_clear_error (&error); return GST_STATE_CHANGE_FAILURE; } |