gl: Fix GError leaks during failures
authorVineeth T M <vineeth.tm@samsung.com>
Thu, 17 Sep 2015 04:35:02 +0000 (13:35 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 17 Sep 2015 09:52:55 +0000 (11:52 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=755140

ext/gl/gstglbasemixer.c

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