summaryrefslogtreecommitdiff
path: root/src/lib/ector/software
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/software')
-rw-r--r--src/lib/ector/software/ector_software_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ector/software/ector_software_buffer.c b/src/lib/ector/software/ector_software_buffer.c
index b894f4c615..5a5c940f7f 100644
--- a/src/lib/ector/software/ector_software_buffer.c
+++ b/src/lib/ector/software/ector_software_buffer.c
@@ -96,7 +96,7 @@ _ector_software_buffer_base_ector_buffer_pixels_set(Eo *obj, Ector_Software_Buff
96 pd->nofree = EINA_TRUE; 96 pd->nofree = EINA_TRUE;
97 pd->writable = !!writable; 97 pd->writable = !!writable;
98 } 98 }
99 else 99 else if (stride > 0 && height > 0)
100 { 100 {
101 pd->pixels.u8 = calloc(stride * height, 1); 101 pd->pixels.u8 = calloc(stride * height, 1);
102 pd->nofree = EINA_FALSE; 102 pd->nofree = EINA_FALSE;