gst-play: Free playlist_file string if only printing the version
authorSebastian Dröge <sebastian@centricular.com>
Mon, 19 May 2014 09:17:33 +0000 (11:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 19 May 2014 09:17:33 +0000 (11:17 +0200)
tools/gst-play.c

index c267e9a..ae68eff 100644 (file)
@@ -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)) {