vkerror: free the error string after usage

g_set_error already used the var string, can clear it now.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6975>
This commit is contained in:
Stéphane Cerveau 2024-05-31 12:27:30 +02:00 committed by GStreamer Marge Bot
parent cb95ba72cf
commit c3f3fd7351

View file

@ -128,6 +128,7 @@ gst_vulkan_error_to_g_error (VkResult result, GError ** error,
g_set_error (error, GST_VULKAN_ERROR, result, "%s (0x%x, %i): %s", result_str,
result, result, string);
g_free (string);
return result;
}