Use MALLOC wrapper for SDL window handling

This commit is contained in:
Kp 2012-11-24 16:47:14 +00:00
parent 0ad3bb6b4d
commit a83ab2bb74

View file

@ -33,7 +33,7 @@ window *window_create(grs_canvas *src, int x, int y, int w, int h, int (*event_c
window *prev = window_get_front();
d_event event;
wind = d_malloc(sizeof(window));
MALLOC(wind, window, 1);
if (wind == NULL)
return NULL;