RE: [AD] `c' in MSG_END

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


> BTW, does anyone know why `shutdown_dialog' does this at the start:
> 
>    dialog_message(player->dialog, MSG_END, 0, &player->obj);
>    ...
> 
> then this at the end:
> 
>    ...
>    obj = player->obj;
>    free(player);
>    return obj;
> 
> instead of just:
> 
>    dialog_message(player->dialog, MSG_END, 0, &obj);
>    ...
>    free(player);
>    return obj;
> 
> AFAICT, in between, `player->obj' is not used at all.  

couldn't it be used by GUI calls from some widgets' MSG_END handlers ?

-- 
Lyrian 



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