mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
tools: gst-launch: fix minor memory leak when failing to parse options
Commit 215cfcf993
(gstreamer: Fix memory leaks when context parse
fails) fixes some memory leak, but in one of the newly added calls to
g_clear_error() the wrong variable was passed.
When failing to parse command line options, free the "err" variable, not
the "error" one.
https://bugzilla.gnome.org/show_bug.cgi?id=773907
This commit is contained in:
parent
7c8087f49a
commit
050f486d10
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue