summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-10-05 11:12:47 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-10-05 12:08:30 +0100
commit456ef2aa1d912a8af5283907d2ffb8ca51481c2a (patch)
tree440237fc100aa72a1b80b7e2f89ddfe73ae85238 /tools
parent3e8ef4cf5a41e26836f0a5a8cb3ddaa5e55f1524 (diff)
tests/gst-launch: Fix sample memory leak
When sample is got using gst_tag_list_get_sample_index, it should be free'd. https://bugzilla.gnome.org/show_bug.cgi?id=756069
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-launch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 839bd64e5..a522a5b4b 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -371,6 +371,7 @@ print_tag (const GstTagList * list, const gchar * tag, gpointer unused)
g_warning ("Couldn't fetch sample for %s tag", tag);
g_assert_not_reached ();
}
+ gst_sample_unref (sample);
} else if (gst_tag_get_type (tag) == GST_TYPE_DATE_TIME) {
GstDateTime *dt = NULL;