Fix memory leak 97/123597/1
authorSeokHoon Lee <andy.shlee@samsung.com>
Thu, 6 Apr 2017 07:41:45 +0000 (16:41 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Thu, 6 Apr 2017 07:42:18 +0000 (16:42 +0900)
- fix memory leak that commented on commit
   https://review.tizen.org/gerrit/#/c/123502/

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

packaging/libmm-wfd.spec
src/mm_wfd_sink_priv.c

index ec200b7..be2d9f7 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-wfd
 Summary:    Multimedia Framework Wifi-Display Library
-Version:    0.2.221
+Version:    0.2.222
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 40ff1e2..ceddcf1 100644 (file)
@@ -2637,6 +2637,8 @@ __mm_wfd_sink_update_stream_info(GstElement *wfdsrc, GstStructure *str, gpointer
                                                        stream_info->audio_stream_info.channels,
                                                        stream_info->audio_stream_info.bitwidth);
                }
+
+               g_free (audio_format);
        }
        if (gst_structure_has_field(str, "video_format")) {
                is_valid_video_format = TRUE;
@@ -2666,6 +2668,8 @@ __mm_wfd_sink_update_stream_info(GstElement *wfdsrc, GstStructure *str, gpointer
                                                        stream_info->video_stream_info.height,
                                                        stream_info->video_stream_info.frame_rate);
                }
+
+               g_free (video_format);
        }
 
        WFD_SINK_MANAGER_SIGNAL_CMD(wfd_sink);