smoothstreaming: change g_free() location. 65/115065/1
authorHyunil <hyunil46.park@samsung.com>
Thu, 16 Feb 2017 07:41:03 +0000 (16:41 +0900)
committerHyunil <hyunil46.park@samsung.com>
Thu, 16 Feb 2017 07:41:03 +0000 (16:41 +0900)
If tmpl is NULL name is not free.

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

index 196ce41..aa13d73 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;