diff --git a/src/gwin/frame.c b/src/gwin/frame.c index 9ba432f5..fbef54dc 100644 --- a/src/gwin/frame.c +++ b/src/gwin/frame.c @@ -35,6 +35,7 @@ static void _callbackBtn(void *param, GEvent *pe); static void _frameDestroy(GHandle gh) { /* Deregister the button callback */ geventRegisterCallback(&gh2obj->gl, NULL, NULL); + geventDetachSource(&gh2obj->gl, NULL); /* call the gwidget standard destroy routine */ _gwidgetDestroy(gh);