gstreamer: base: Fix memory leaks when context parse fails.
authorVineeth TM <vineeth.tm@samsung.com>
Thu, 20 Aug 2015 06:59:15 +0000 (15:59 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 2 Oct 2015 14:26:27 +0000 (17:26 +0300)
commit8e5f7f27f56e567ab31bb3986f4963fc30c39443
tree7dee5ae605d5a6613582074a71fa2cc4657e74a5
parent0c0f80348801cea5f190e6b2024f4c0da5381efd
gstreamer: base: Fix memory leaks when context parse fails.

When g_option_context_parse fails, context and error variables are not getting free'd
which results in memory leaks. Free'ing the same.

And replacing g_error_free with g_clear_error, which checks if the error being passed
is not NULL and sets the variable to NULL on free'ing.

https://bugzilla.gnome.org/show_bug.cgi?id=753852
gst-libs/gst/tag/mklicensestables.c
tests/examples/encoding/encoding.c
tests/examples/playback/playback-test.c
tests/examples/seek/jsseek.c
tests/examples/seek/scrubby.c
tests/icles/stress-playbin.c
tests/icles/test-effect-switch.c
tools/gst-device-monitor.c
tools/gst-discoverer.c
tools/gst-play.c