SDL_PushEvent and user events

Hi, just a quick question about user events: Does SDL_PushEvent
create its own copy of the events pushed into the queue, so that the
event structure should be freed after the call ? And who’s
responsibility is it to free the event once removed from the queue ?
SDL or the user ?

I don’t have the SDL source handy, so i can’t check myself atm…
Thank you! =)–
Trick


Linux User #229006 * http://counter.li.org

—end quoted text—
I guess it makes it’s own copy…
and you should free… since I not declare it as a pointer, and then pass it to the SDL as &event… so no worry about frees…

[]'sOn Sat, Sep 22, 2001 at 11:22:12PM +0200, Trick wrote:

Hi, just a quick question about user events: Does SDL_PushEvent
create its own copy of the events pushed into the queue, so that the
event structure should be freed after the call ? And who’s
responsibility is it to free the event once removed from the queue ?
SDL or the user ?

Marcelo R Leitner
ICQ #: 29966851
Kill’em All … And Justice For All.

Ok, thanks!On Sunday 23. September 2001 00:05, you wrote:

On Sat, Sep 22, 2001 at 11:22:12PM +0200, Trick wrote:

Hi, just a quick question about user events: Does SDL_PushEvent
create its own copy of the events pushed into the queue, so that
the event structure should be freed after the call ? And who’s
responsibility is it to free the event once removed from the
queue ? SDL or the user ?

—end quoted text—
I guess it makes it’s own copy…
and you should free… since I not declare it as a pointer, and then
pass it to the SDL as &event… so no worry about frees…


Trick


Linux User #229006 * http://counter.li.org