Merge tizen patch based on 1.12.2
[platform/upstream/gstreamer.git] / examples / egl / testegl.c
old mode 100644 (file)
new mode 100755 (executable)
index bccf6c1..99aa810
@@ -1495,6 +1495,8 @@ main (int argc, char **argv)
   g_option_context_add_group (ctx, gst_init_get_option_group ());
   if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
     g_print ("Error initializing: %s\n", GST_STR_NULL (err->message));
+    g_option_context_free (ctx);
+    g_clear_error (&err);
     exit (1);
   }
   g_option_context_free (ctx);