Re: [AD] al_unref_user_event

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


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




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/