summaryrefslogtreecommitdiff
path: root/src/lib/evas/include
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-07-11 16:03:01 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-11 16:16:25 +0900
commitdc97ae0937dfa7e3208b7bb2e8f541563c54d2f0 (patch)
tree3500959c6577574c88c8e1a99d707a5fe8286168 /src/lib/evas/include
parent21ad1916aeb90b4a5a51e1ad4a8c98ce0cb6a7cb (diff)
evas: reduce memory footprint.
Diffstat (limited to 'src/lib/evas/include')
-rw-r--r--src/lib/evas/include/evas_private.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h
index 8af4b27ce0..f2344c5fd9 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -145,12 +145,12 @@ MAGIC_CHECK_FAILED(o, t, m)
145#define MERR_BAD() _evas_alloc_error = EVAS_ALLOC_ERROR_RECOVERED 145#define MERR_BAD() _evas_alloc_error = EVAS_ALLOC_ERROR_RECOVERED
146 146
147#define EVAS_OBJECT_IMAGE_FREE_FILE_AND_KEY(cur, prev) \ 147#define EVAS_OBJECT_IMAGE_FREE_FILE_AND_KEY(cur, prev) \
148 if (cur->file) \ 148 if (cur->u.file && !cur->mmaped_source) \
149 { \ 149 { \
150 eina_stringshare_del(cur->file); \ 150 eina_stringshare_del(cur->u.file); \
151 if (prev->file == cur->file) \ 151 if (prev->u.file == cur->u.file) \
152 prev->file = NULL; \ 152 prev->u.file = NULL; \
153 cur->file = NULL; \ 153 cur->u.file = NULL; \
154 } \ 154 } \
155 if (cur->key) \ 155 if (cur->key) \
156 { \ 156 { \
@@ -159,10 +159,10 @@ MAGIC_CHECK_FAILED(o, t, m)
159 prev->key = NULL; \ 159 prev->key = NULL; \
160 cur->key = NULL; \ 160 cur->key = NULL; \
161 } \ 161 } \
162 if (prev->file) \ 162 if (prev->u.file && !prev->mmaped_source) \
163 { \ 163 { \
164 eina_stringshare_del(prev->file); \ 164 eina_stringshare_del(prev->u.file); \
165 prev->file = NULL; \ 165 prev->u.file = NULL; \
166 } \ 166 } \
167 if (prev->key) \ 167 if (prev->key) \
168 { \ 168 { \