aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/frame.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-01-07 23:59:06 +0100
committerJoel Bodenmann <joel@unormal.org>2014-01-07 23:59:06 +0100
commita606e838fdddb589211b3271bbdee47e8834362a (patch)
treed39c16a574c4709747642f442c2659c24991b80b /src/gwin/frame.c
parent789765ddadefefc177fffacd7455269769239b82 (diff)
downloaduGFX-a606e838fdddb589211b3271bbdee47e8834362a.tar.gz
uGFX-a606e838fdddb589211b3271bbdee47e8834362a.tar.bz2
uGFX-a606e838fdddb589211b3271bbdee47e8834362a.zip
destroy routine of frame widget deregisters button callbacks
Diffstat (limited to 'src/gwin/frame.c')
-rw-r--r--src/gwin/frame.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gwin/frame.c b/src/gwin/frame.c
index a6b957f7..9ba432f5 100644
--- a/src/gwin/frame.c
+++ b/src/gwin/frame.c
@@ -33,9 +33,8 @@ void gwinFrameDraw_Std(GWidgetObject *gw, void *param);
static void _callbackBtn(void *param, GEvent *pe);
static void _frameDestroy(GHandle gh) {
- /* Detach all button sources */
- // ToDo
- //geventDetachSource(&gh2obj->gl, NULL);
+ /* Deregister the button callback */
+ geventRegisterCallback(&gh2obj->gl, NULL, NULL);
/* call the gwidget standard destroy routine */
_gwidgetDestroy(gh);