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,8 +810,8 @@ void widgetRemoveEventHandlerImpl(widget *self, int id)
|
||||||
eventMisc evtDestruct;
|
eventMisc evtDestruct;
|
||||||
evtDestruct.event.type = EVT_DESTRUCT;
|
evtDestruct.event.type = EVT_DESTRUCT;
|
||||||
|
|
||||||
handler->destructor(self, (event *) &evtDestruct, -1,
|
handler->destructor(self, (event *) &evtDestruct, handler->id,
|
||||||
handler->userData);
|
handler->userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Release the handler
|
// Release the handler
|
||||||
|
|
Loading…
Reference in New Issue