Add free code 14/175214/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.015107 accepted/tizen/unified/20180411.065533 submit/tizen/20180410.044603 submit/tizen_5.0/20181101.000003
authorSeokHoon Lee <andy.shlee@samsung.com>
Mon, 9 Apr 2018 09:21:16 +0000 (18:21 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Mon, 9 Apr 2018 09:25:05 +0000 (18:25 +0900)
- add g_free (type) for memory leak

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

packaging/libmm-streamrecorder.spec
src/mm_streamrecorder_recorder.c

index 3c1ded6..0cd8cae 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-streamrecorder
 Summary:    Media Stream Recorder library
-Version:    0.0.18
+Version:    0.0.19
 Release:    0
 Group:      Multimedia/Other
 License:    Apache-2.0
index 9e3de20..75996d0 100644 (file)
@@ -562,8 +562,8 @@ int _mmstreamrecorder_create_encodesink_bin(MMHandleType handle, MMStreamRecorde
                        MMSTREAMRECORDER_G_OBJECT_SET(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "acaps", caps);
                        {
                                gchar *type = gst_caps_to_string(caps);
-
                                _mmstreamrec_dbg_warn("Set srcpad caps: %s", type);
+                               g_free(type);
                        }
                        gst_caps_unref(caps);
                        caps = NULL;
@@ -908,9 +908,8 @@ int _mmstreamrecorder_create_audiosrc_bin(MMHandleType handle)
                MMSTREAMRECORDER_G_OBJECT_SET((sc->encode_element[_MMSTREAMRECORDER_AUDIOSRC_FILT].gst), "caps", caps);
                {
                        gchar *type = gst_caps_to_string(caps);
-
                        _mmstreamrec_dbg_err("_MMSTREAMRECORDER_AUDIOSRC_FILT %s", type);
-
+                       g_free(type);
                }
                gst_caps_unref(caps);
                caps = NULL;