summaryrefslogtreecommitdiff
path: root/src/lib/evas/vg
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-06-11 20:06:19 +0900
committerHermet Park <hermetpark@gmail.com>2018-06-11 20:10:07 +0900
commit5733994b02b922cb83d0d325e100bb282175e0ee (patch)
tree73f59cbcd4567d3ae60b35c022004e30b2af6af5 /src/lib/evas/vg
parentb47782372b98de49b06a65ca8032a6a99360281b (diff)
evas vg: fix wrong obj deletion.
Cached roots are constructed out of canvas. Means, they have no parents, generated efl_add_ref() which requests to call efl_unref() instead of explicit deletion.
Diffstat (limited to 'src/lib/evas/vg')
-rw-r--r--src/lib/evas/vg/evas_vg_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c
index 9bbf4d94be..dc2272c6c4 100644
--- a/src/lib/evas/vg/evas_vg_cache.c
+++ b/src/lib/evas/vg/evas_vg_cache.c
@@ -177,7 +177,7 @@ static void
177_evas_cache_vg_data_free_cb(void *data) 177_evas_cache_vg_data_free_cb(void *data)
178{ 178{
179 Vg_File_Data *val = data; 179 Vg_File_Data *val = data;
180 efl_del(val->root); 180 efl_unref(val->root);
181 free(val); 181 free(val);
182} 182}
183 183
@@ -189,7 +189,7 @@ _evas_cache_svg_entry_free_cb(void *data)
189 eina_stringshare_del(entry->file); 189 eina_stringshare_del(entry->file);
190 eina_stringshare_del(entry->key); 190 eina_stringshare_del(entry->key);
191 free(entry->hash_key); 191 free(entry->hash_key);
192 efl_del(entry->root); 192 efl_unref(entry->root);
193 free(entry); 193 free(entry);
194} 194}
195 195