tools: gst-launch: fix minor memory leak when failing to parse options
authorAntonio Ospite <ao2@ao2.it>
Wed, 2 Nov 2016 12:57:51 +0000 (13:57 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 4 Nov 2016 14:59:36 +0000 (16:59 +0200)
commit050f486d10b463180b3d3d2b55bc0db7ff5247db
treed40060b93ab9108d1c13ea668d32af1464672ea5
parent7c8087f49ace35716c4312bd5651e3585ff16ee7
tools: gst-launch: fix minor memory leak when failing to parse options

Commit 215cfcf99338 (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
tools/gst-launch.c