elm_entry_utf8_to_markup() returns memory allocated using strdup()
which should be freed using free() instead of g_free().
Change-Id: If6f0e5796a8ee1d04fec4000c9fce9182eabd255
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Name: ug-setting-wifidirect-efl
Summary: Wi-Fi Direct setting UI gadget
-Version: 1.11.70
+Version: 1.11.71
Release: 1
Group: Applications/Network
License: Flora-1.1
det = elm_entry_utf8_to_markup(D_("IDS_COM_BODY_CONNECTED_M_STATUS"));
buf = g_strdup_printf("<color=#%s>%s</color>",
ConvertRGBAtoHex(2, 61, 132, 255), det);
- if (det != NULL) {
- g_free(det);
- }
+ WFD_IF_FREE_MEM(det);
__FUNC_EXIT__;
return buf;
}