Fix memory leak 22/92522/2 accepted/tizen/3.0/common/20161114.105817 accepted/tizen/3.0/ivi/20161028.133929 accepted/tizen/3.0/mobile/20161028.133035 accepted/tizen/3.0/tv/20161028.133350 accepted/tizen/common/20161019.145750 accepted/tizen/ivi/20161019.141554 accepted/tizen/mobile/20161019.141417 accepted/tizen/tv/20161019.141500 submit/tizen/20161019.084351 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 17 Oct 2016 08:50:18 +0000 (17:50 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 17 Oct 2016 08:53:21 +0000 (17:53 +0900)
[Version] 0.11.1
[Profile] Mobile, TV
[Issue Type] Fix bugs

Change-Id: Ia09dffb09b01862abe7d48bfe8b6012ec6040d39

packaging/libmm-transcode.spec
transcode/mm_transcode_pipeline.c
transcode/mm_transcode_seek.c

index 9c446fd..058b8fc 100644 (file)
@@ -1,7 +1,7 @@
 Name:       libmm-transcode
 Summary:    Multimedia Framework Video Transcode Library
-Version:    0.10
-Release:    5
+Version:    0.10.1
+Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
index 574d76c..3c2969c 100755 (executable)
@@ -238,7 +238,7 @@ int _mm_cleanup_pipeline(handle_s *handle)
 
        if (handle->encodebin->video_event_probe_id) {
                g_source_remove(handle->encodebin->video_event_probe_id);
-               handle->property->video_cb_probe_id = 0;
+               handle->encodebin->video_event_probe_id = 0;
                debug_log("g_source_remove (video_event_probe_id)");
        }
 
index 0b9a45b..c3e0c72 100755 (executable)
@@ -519,6 +519,8 @@ gboolean _mm_cb_transcode_bus(GstBus *bus, GstMessage *message, gpointer userdat
 
 static void _mm_transcode_audio_capsfilter(GstCaps *caps, handle_s *handle)
 {
+       gchar *str = NULL;
+
        if (!handle) {
                debug_error("[ERROR] - handle");
                return;
@@ -546,7 +548,16 @@ static void _mm_transcode_audio_capsfilter(GstCaps *caps, handle_s *handle)
 
        TRANSCODE_FREE(handle->property->audiodecodename);
        g_object_set(G_OBJECT(handle->decoder_audp->audflt), "caps", caps, NULL);
-       debug_log("%s audiocaps: %s", "audio decoder capsfilter", gst_caps_to_string(caps));
+
+       str = gst_caps_to_string(caps);
+
+       if (str) {
+               debug_log("audio decoder capsfilter audiocaps: %s", str);
+               g_free(str);
+       }
+
+       return;
+
 }
 
 int _mm_transcode_create(handle_s *handle)