mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
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. https://bugzilla.gnome.org/show_bug.cgi?id=751823
This commit is contained in:
parent
237af0d21c
commit
5229b50125
1 changed files with 1 additions and 4 deletions
|
@ -788,10 +788,7 @@ context_error:
|
||||||
gl_sink->context = NULL;
|
gl_sink->context = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error) {
|
g_clear_error (&error);
|
||||||
g_error_free (error);
|
|
||||||
error = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue