summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_cnp.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-09 16:45:36 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-09 17:10:39 +0100
commita491e95dea7bdde97635c292b8c415f5f2320c6e (patch)
tree86c05fcf679af65e4367f536b5f53426c2b9a1ad /src/lib/elementary/elm_cnp.c
parentbcbe56ecddb4d1e46b812a3bfa2a91992a83e0ce (diff)
elm_cnp: free array when going out of scope
this was missing and indeed a memory leak.
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/elm_cnp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c
index cf1f0eedc0..8501cfe985 100644
--- a/src/lib/elementary/elm_cnp.c
+++ b/src/lib/elementary/elm_cnp.c
@@ -104,6 +104,7 @@ elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection,
104 ERR("You cannot specify more than one format when setting selection"); 104 ERR("You cannot specify more than one format when setting selection");
105 } 105 }
106 mime_type = eina_array_data_get(tmp, 0); 106 mime_type = eina_array_data_get(tmp, 0);
107 eina_array_free(tmp);
107 content = eina_content_new(data, mime_type); 108 content = eina_content_new(data, mime_type);
108 _register_selection_changed(obj); 109 _register_selection_changed(obj);
109 110