woohyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fd24fb568eb600357c4a84b6fc4aa2ba8e36c86d

commit fd24fb568eb600357c4a84b6fc4aa2ba8e36c86d
Author: Ali Alzyod <ali198...@gmail.com>
Date:   Mon Jun 22 17:27:42 2020 +0900

    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);

-- 


Reply via email to