gl: Fix GError leaks during failures

https://bugzilla.gnome.org/show_bug.cgi?id=755140
This commit is contained in:
Vineeth T M 2015-09-17 13:35:02 +09:00 committed by Sebastian Dröge
parent 895e71e810
commit 78e07d02eb

View file

@ -496,6 +496,7 @@ context_error:
{
GST_ELEMENT_ERROR (mix, RESOURCE, NOT_FOUND, ("%s", error->message),
(NULL));
g_clear_error (&error);
return FALSE;
}
}