Add gst_object_unref about pad 79/104379/3 accepted/tizen/common/20161214.160446 accepted/tizen/ivi/20161214.015308 accepted/tizen/mobile/20161214.014800 accepted/tizen/tv/20161214.015048 submit/tizen/20161213.083228
authorSeokHoon Lee <andy.shlee@samsung.com>
Tue, 13 Dec 2016 08:04:08 +0000 (17:04 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Tue, 13 Dec 2016 08:16:59 +0000 (17:16 +0900)
[Version] 1.6.1-7
[Profile] Common
[Issue Type] refactoring code
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161130-2]

Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: Icffe192c59b40aa683673961beea0df2e517b0a1

gst/rtsp-server/rtsp-media-factory-wfd.c [changed mode: 0755->0644]
packaging/gst-rtsp-server.spec

old mode 100755 (executable)
new mode 100644 (file)
index c8ff33f..de3569a
@@ -1259,6 +1259,8 @@ _rtsp_media_factory_wfd_create_srcbin (GstRTSPMediaFactoryWFD * factory)
     }
     gst_pad_add_probe (pad_probe, GST_PAD_PROBE_TYPE_BUFFER,
         rtsp_media_wfd_dump_data, factory, NULL);
+    if (pad_probe)
+      gst_object_unref (pad_probe);
   }
 
   GST_DEBUG_OBJECT (factory, "successfully created source bin...");
@@ -1267,6 +1269,12 @@ _rtsp_media_factory_wfd_create_srcbin (GstRTSPMediaFactoryWFD * factory)
 
 create_error:
   GST_ERROR_OBJECT (factory, "Failed to create pipeline");
+  if (mux_vsinkpad)
+    gst_object_unref (mux_vsinkpad);
+  if (mux_asinkpad)
+    gst_object_unref (mux_asinkpad);
+  if (srcpad)
+    gst_object_unref (srcpad);
   return NULL;
 }
 
index 3f6fb7a..d777ac1 100644 (file)
@@ -1,7 +1,7 @@
 Name:       gst-rtsp-server
 Summary:    Multimedia Framework Library
 Version:    1.6.1
-Release:    6
+Release:    7
 Url:        http://gstreamer.freedesktop.org/
 Group:      System/Libraries
 License:    LGPL-2.0+