Pass the ID of an event handler to destruct events the same way as we would to regular events.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5953 4a71c877-e1ca-e34f-864e-861f7616d084
master
Freddie Witherden 2008-09-07 16:58:46 +00:00
parent 50747b6e53
commit a7eee1378d
1 changed files with 2 additions and 2 deletions

View File

@ -810,8 +810,8 @@ void widgetRemoveEventHandlerImpl(widget *self, int id)
eventMisc evtDestruct;
evtDestruct.event.type = EVT_DESTRUCT;
handler->destructor(self, (event *) &evtDestruct, -1,
handler->userData);
handler->destructor(self, (event *) &evtDestruct, handler->id,
handler->userData);
}
// Release the handler