mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
call al_unref_user_event in event loop on user events
This commit is contained in:
parent
29f9484a6b
commit
7c94d31d66
1 changed files with 4 additions and 0 deletions
|
@ -239,6 +239,10 @@ static inline bool MainloopEvents(struct Game* game) {
|
|||
|
||||
EventGamestates(game, &ev);
|
||||
|
||||
if (ALLEGRO_EVENT_TYPE_IS_USER(ev.type)) {
|
||||
al_unref_user_event(&ev.user);
|
||||
}
|
||||
|
||||
} while (!al_is_event_queue_empty(game->_priv.event_queue));
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue