diff --git a/lib/betawidget/widget.c b/lib/betawidget/widget.c index d06f6f14d..337d1743a 100644 --- a/lib/betawidget/widget.c +++ b/lib/betawidget/widget.c @@ -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