gstreamer: bad: Fix memory leaks when context parse fails
authorVineeth TM <vineeth.tm@samsung.com>
Thu, 20 Aug 2015 07:03:29 +0000 (16:03 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 2 Oct 2015 14:24:35 +0000 (17:24 +0300)
commit8c9ca808af4cb49b3bce6dd4f0d02671eba08520
tree5a0a8f86e99979f16e4e45b08e81ccb6bbbe6494
parent3b1e0951696298ae373b0a5b1e8216f0e992be7d
gstreamer: bad: 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=753854
gst/inter/gstintertest.c
tests/examples/camerabin2/gst-camerabin2-test.c
tests/examples/codecparsers/parse-jpeg.c
tests/examples/gl/gtk/fxtest/fxtest.c
tests/examples/gl/gtk/fxtest/pixbufdrop.c
tests/examples/opencv/gstfacedetect_test.c
tests/examples/playout.c
tools/gst-app-maker