From fd24fb568eb600357c4a84b6fc4aa2ba8e36c86d Mon Sep 17 00:00:00 2001 From: Ali Alzyod Date: Mon, 22 Jun 2020 17:27:42 +0900 Subject: [PATCH] elementary_test: remove leaked style Summary: remove created style after being set in textblock Reviewers: woohyun, smohanty Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8742 Differential Revision: https://phab.enlightenment.org/D11944 --- src/bin/elementary/test_label.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/elementary/test_label.c b/src/bin/elementary/test_label.c index 5b3e5e8265..414058d9ad 100644 --- a/src/bin/elementary/test_label.c +++ b/src/bin/elementary/test_label.c @@ -492,6 +492,8 @@ test_textblock_fit(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e evas_textblock_style_set(style,styles[0]); evas_object_textblock_style_set(app->txtblock,style); evas_object_textblock_text_markup_set(app->txtblock,contents[0]); + evas_textblock_style_free(style); + style = NULL; elm_box_horizontal_set(app->boxHor, EINA_TRUE); elm_box_horizontal_set(app->boxHor2, EINA_TRUE);