Use MALLOC wrapper for SDL window handling
This commit is contained in:
parent
e87b7a3363
commit
58d6a2f92a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue