diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index e449b830..36933e5e 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -109,7 +109,7 @@ void gwinDestroyWindow(GHandle gh) { chHeapFree((void *)((GButtonObject *)gh)->txt); } geventDetachSource(&((GButtonObject *)gh)->listener, 0); - geventDetachSourceListeners((GSourceHandle *)gh); + geventDetachSourceListeners((GSourceHandle)gh); break; #endif default: