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-861f7616d084master
parent
50747b6e53
commit
a7eee1378d
|
@ -810,7 +810,7 @@ void widgetRemoveEventHandlerImpl(widget *self, int id)
|
|||
eventMisc evtDestruct;
|
||||
evtDestruct.event.type = EVT_DESTRUCT;
|
||||
|
||||
handler->destructor(self, (event *) &evtDestruct, -1,
|
||||
handler->destructor(self, (event *) &evtDestruct, handler->id,
|
||||
handler->userData);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue