aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/frame.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-01-08 00:02:10 +0100
committerJoel Bodenmann <joel@unormal.org>2014-01-08 00:02:10 +0100
commitac690d1d295ec27f4c01064bd692d521c7f8b363 (patch)
treedee98dc758ef05e9a1b3fc2ee3e9211e68e6ba7e /src/gwin/frame.c
parenta606e838fdddb589211b3271bbdee47e8834362a (diff)
downloaduGFX-ac690d1d295ec27f4c01064bd692d521c7f8b363.tar.gz
uGFX-ac690d1d295ec27f4c01064bd692d521c7f8b363.tar.bz2
uGFX-ac690d1d295ec27f4c01064bd692d521c7f8b363.zip
destroy routine of frame widget deregisters button callbacks
Diffstat (limited to 'src/gwin/frame.c')
-rw-r--r--src/gwin/frame.c1
1 files changed, 1 insertions, 0 deletions
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);