summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_cocoa/ecore_cocoa.m')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index 012fd11fe4..6197d58eed 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -295,7 +295,7 @@ _ecore_cocoa_feed_events(void *anEvent)
295 Ecore_Event_Mouse_Wheel *ev; 295 Ecore_Event_Mouse_Wheel *ev;
296 float dx, dy = 0; 296 float dx, dy = 0;
297 297
298 ev = malloc(sizeof(Ecore_Event_Mouse_Wheel)); 298 ev = calloc(1, sizeof(Ecore_Event_Mouse_Wheel));
299 if (!ev) return pass; 299 if (!ev) return pass;
300 300
301 if ([event hasPreciseScrollingDeltas]) 301 if ([event hasPreciseScrollingDeltas])