smoothstreaming: Fix minor use after free reference
authorArun Raghavan <arun@arunraghavan.net>
Mon, 2 Jan 2017 12:20:02 +0000 (17:50 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Mon, 2 Jan 2017 12:20:02 +0000 (17:50 +0530)
Just a matter of reordering a g_free() /after/ cleaning out all the
members.

CID 1396746

ext/smoothstreaming/gstmssmanifest.c

index e1031ba..7ef1114 100644 (file)
@@ -425,8 +425,8 @@ gst_mss_stream_free (GstMssStream * stream)
   xmlFree (stream->lang);
   g_regex_unref (stream->regex_position);
   g_regex_unref (stream->regex_bitrate);
-  g_free (stream);
   gst_mss_fragment_parser_clear (&stream->fragment_parser);
+  g_free (stream);
 }
 
 void