mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
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:
parent
cb95ba72cf
commit
c3f3fd7351
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue