diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 2de754d94e..006eeae90f 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -1015,7 +1015,7 @@ main (int argc, char *argv[]) g_printerr ("Error initializing: %s\n", GST_STR_NULL (err->message)); else g_printerr ("Error initializing: Unknown error!\n"); - g_clear_error (&error); + g_clear_error (&err); g_option_context_free (ctx); exit (1); }