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
1f96d6f364
commit
1b657bd70e
1 changed files with 3 additions and 0 deletions
|
@ -523,6 +523,9 @@ SYMBOL_INTERNAL void libsuperderpy_mainloop(void* g) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
EventGamestates(game, &ev);
|
EventGamestates(game, &ev);
|
||||||
|
if (ALLEGRO_EVENT_TYPE_IS_USER(ev.type)) {
|
||||||
|
al_unref_user_event(&ev.user);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue