hlssink2: Fix string leak
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 27 Nov 2018 07:06:53 +0000 (16:06 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Tue, 27 Nov 2018 07:08:17 +0000 (16:08 +0900)
Need to free allocated string memory on _finalize()

ext/hls/gsthlssink2.c

index 79233b0..760f0b9 100644 (file)
@@ -104,6 +104,7 @@ gst_hls_sink2_finalize (GObject * object)
   g_free (sink->location);
   g_free (sink->playlist_location);
   g_free (sink->playlist_root);
+  g_free (sink->current_location);
   if (sink->playlist)
     gst_m3u8_playlist_free (sink->playlist);