smoothstreaming: change g_free() location. 72/115072/1 accepted/tizen/3.0/common/20170220.125722 accepted/tizen/3.0/ivi/20170220.013857 accepted/tizen/3.0/mobile/20170220.013531 accepted/tizen/3.0/tv/20170220.013628 accepted/tizen/3.0/wearable/20170220.013742 submit/tizen_3.0/20170216.114148
authorHyunil <hyunil46.park@samsung.com>
Thu, 16 Feb 2017 07:41:03 +0000 (16:41 +0900)
committerHyunil Park <hyunil46.park@samsung.com>
Thu, 16 Feb 2017 07:56:33 +0000 (23:56 -0800)
If tmpl is NULL name is not free.

Change-Id: I980acd81d2e5ea31f079df0101aafd6ce38d78bb
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
ext/smoothstreaming/gstmssdemux.c

index 196ce4147c767e47f2c615102a4d404e47660160..aa13d7367dd9dfa8b69f53eb7da2a4a0b672c1ad 100644 (file)
@@ -356,9 +356,10 @@ _create_pad (GstMssDemux * mssdemux, GstMssStream * manifeststream)
   if (tmpl != NULL) {
     srcpad =
         GST_PAD_CAST (gst_ghost_pad_new_no_target_from_template (name, tmpl));
-    g_free (name);
     gst_object_unref (tmpl);
   }
+  g_free (name);
+
   if (!srcpad) {
     GST_WARNING_OBJECT (mssdemux, "Ignoring unknown type stream");
     return NULL;