From 61c8b2fcd5633b8ebb7bf36179bf48cafd47b068 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 27 Jan 2003 01:56:21 +0000 Subject: [PATCH] this is why operator new is better than malloc (we can't use new here; we're passing this structure to SDL) --- stepmania/src/StepMania.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index ff0e0c83e4..b6b79068a2 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -104,7 +104,7 @@ void ApplyGraphicOptions() void ExitGame() { SDL_Event *event; - event = (SDL_Event *) malloc(sizeof(event)); + event = (SDL_Event *) malloc(sizeof(SDL_Event)); event->type = SDL_QUIT; SDL_PushEvent(event); }