Fix Memory Leak 98/248798/1 accepted/tizen/unified/20201203.123819 submit/tizen/20201203.015604
authorKiseok Chang <kiso.chang@samsung.com>
Wed, 2 Dec 2020 09:26:11 +0000 (18:26 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Wed, 2 Dec 2020 09:27:15 +0000 (18:27 +0900)
- add i18n_udatepg_destroy() after i18n_udatepg_create()

Change-Id: Id9ef479c68d34881da40ba6663f3e365474bc3a5
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
setting-common/src/setting-common-draw-genlist.c

index 85b92adb398e4a47c30b9b9ba59a5d9a4cf482ac..cf9b6ea2f7b94c1f9d4618ffa090b6ea1c008484 100755 (executable)
@@ -619,6 +619,7 @@ char *__setting_phone_lang_get_by_pattern(const char *locale,
                        i18n_ustring_get_length(customSkeleton), bestPattern,
                        bestPatternCapacity, &best_pattern_len);
        i18n_ustring_copy_au(bestPatternString, bestPattern);
+       i18n_udatepg_destroy(pattern_generator);
 
        i18n_udate date;
        i18n_ucalendar_get_now(&date);