summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-16 21:00:36 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-16 21:00:36 +0100
commit9a2776811d39cc0d57da48bd6dd7e6506f6626e2 (patch)
tree34c06ad28e20b0366e853a175f458cf551f2cc37 /src/examples
parent8941514b467ce3e5d02c9b936d35a9d393989260 (diff)
edje example - dont leak text
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/edje/edje-text.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/edje/edje-text.c b/src/examples/edje/edje-text.c
index 45fb340feb..6a58d87273 100644
--- a/src/examples/edje/edje-text.c
+++ b/src/examples/edje/edje-text.c
@@ -44,7 +44,9 @@ _on_delete(Ecore_Evas *ee EINA_UNUSED)
44static void 44static void
45_on_text_change(void *data EINA_UNUSED, Evas_Object *obj, const char *part) 45_on_text_change(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
46{ 46{
47 printf("text: %s\n", edje_object_part_text_unescaped_get(obj, part)); 47 char *str = edje_object_part_text_unescaped_get(obj, part);
48 printf("text: %s\n", str);
49 free(str);
48} 50}
49 51
50static void 52static void