Commit 8ec2e0ad authored by Vineeth TM's avatar Vineeth TM Committed by Luis de Bethencourt
Browse files

glimagesink: use g_clear_error instead of g_error_free

replace g_error_free with g_clear_error, as it internally
checks if error variable is valid or not.
parent 96d69169
......@@ -788,10 +788,7 @@ context_error:
gl_sink->context = NULL;
if (error) {
g_error_free (error);
error = NULL;
g_clear_error (&error);
return FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment