Skip to content

Commit

Permalink
fix memleak in gui2 delay event_event
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Dec 8, 2016
1 parent 8b472e8 commit c3174b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/widgets/window.cpp
Expand Up @@ -161,6 +161,7 @@ static Uint32 draw_timer(Uint32, void*)
static Uint32 delay_event_callback(const Uint32, void* event)
{
SDL_PushEvent(static_cast<SDL_Event*>(event));
delete static_cast<SDL_Event*>(event);
return 0;
}

Expand Down

0 comments on commit c3174b4

Please sign in to comment.