Re: [AD] al_unref_user_event |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] al_unref_user_event
- From: Matthew Leverton <meffer@xxxxxxxxxx>
- Date: Mon, 10 Aug 2009 14:30:50 -0500
On Mon, Aug 10, 2009 at 1:43 PM, Matthew Leverton<meffer@xxxxxxxxxx> wrote:
> So this function is safe to call, even on Allegro generated events?
> Would it make more sense to call it al_unref_event(ALLEGRO_EVENT
> *event)?
>
Actually it appears to crash on the display lose focus event. I've had
to alter my code to:
if (ALLEGRO_EVENT_TYPE_IS_USER(event.type))
al_unref_user_event(&event.user);
So I guess I would rather see Allegro handle the burden of doing that
check, but I tend to be more lazy than the average person...
--
Matthew Leverton