Fix prevent issue: CID482427, CID482428
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 7 Oct 2015 12:53:49 +0000 (21:53 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 7 Oct 2015 13:07:53 +0000 (22:07 +0900)
Change-Id: I39a28cf5b862dea335f3816151191ee8f76978e2

src/navigator.c
src/smart_notification.c

index b286cb3..c965cd8 100644 (file)
@@ -1164,7 +1164,7 @@ static void _read_value(AtspiValue * value)
        char buf[256] = "\0";
        snprintf(buf, sizeof(buf), "%d percent", proc);
        DEBUG("has value %s", buf);
-       tts_speak(strdup(buf), EINA_TRUE);
+       tts_speak(buf, EINA_TRUE);
 }
 
 static void _value_inc(void)
index f48078c..e519797 100644 (file)
@@ -188,5 +188,5 @@ static void _smart_notification_realized_items(int start_idx, int end_idx)
 
        snprintf(buf, sizeof(buf), _("IDS_REACHED_ITEMS_NOTIFICATION"), start_idx, end_idx);
 
-       tts_speak(strdup(buf), EINA_FALSE);
+       tts_speak(buf, EINA_FALSE);
 }