summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorBryce Harrington <bryce@bryceharrington.org>2018-09-14 11:45:24 +0900
committerHermet Park <hermetpark@gmail.com>2018-11-21 20:38:50 +0900
commitcd6e7fe685824db9225da447acf3ea6ccaa627cd (patch)
tree4b16557b024e83f366917f7c3343023ae97b9edb /src/lib/evas
parent2191178ef2dff555c7d02edb420a53a762663c1d (diff)
evas vg: Check for OOM in evas_cache_vg_entry_create
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/vg/evas_vg_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c
index f628a781d1..4ef27b7d5c 100644
--- a/src/lib/evas/vg/evas_vg_cache.c
+++ b/src/lib/evas/vg/evas_vg_cache.c
@@ -316,6 +316,12 @@ evas_cache_vg_entry_find(const char *file, const char *key,
316 if (!se) 316 if (!se)
317 { 317 {
318 se = calloc(1, sizeof(Evas_Cache_Vg_Entry)); 318 se = calloc(1, sizeof(Evas_Cache_Vg_Entry));
319 if (!se)
320 {
321 CRI("Failed to alloc Vg_Cache_Entry");
322 eina_strbuf_free(hash_key);
323 return NULL;
324 }
319 se->file = eina_stringshare_add(file); 325 se->file = eina_stringshare_add(file);
320 se->key = eina_stringshare_add(key); 326 se->key = eina_stringshare_add(key);
321 se->w = w; 327 se->w = w;