summaryrefslogtreecommitdiff
path: root/tools/gst-play.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-19 11:17:33 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-19 11:17:33 +0200
commit86c698a46f7efa5f106633f0d8c69683bd03aef2 (patch)
tree8d6e351f044677d572e40556813221032563c62e /tools/gst-play.c
parent59131a4ceb8484b5603123b102732770e4e49d22 (diff)
gst-play: Free playlist_file string if only printing the version
Diffstat (limited to 'tools/gst-play.c')
-rw-r--r--tools/gst-play.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gst-play.c b/tools/gst-play.c
index c267e9abf..ae68eff4e 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -712,6 +712,7 @@ main (int argc, char **argv)
g_free (audio_sink);
g_free (video_sink);
+ g_free (playlist_file);
return 0;
}
@@ -739,6 +740,7 @@ main (int argc, char **argv)
g_clear_error (&err);
}
g_free (playlist_file);
+ playlist_file = NULL;
}
if (playlist->len == 0 && (filenames == NULL || *filenames == NULL)) {