From 852ec2d898b8aa9e19fee90e51b7fb4a3c1d5402 Mon Sep 17 00:00:00 2001 From: ale rimoldi Date: Wed, 22 Jun 2016 22:50:02 +0200 Subject: [PATCH] Update main.c --- examples/histogram/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/histogram/main.c b/examples/histogram/main.c index f2b0e793..b726e9df 100644 --- a/examples/histogram/main.c +++ b/examples/histogram/main.c @@ -233,7 +233,7 @@ static void onColorChanged(uiColorButton *b, void *data) static int onClosing(uiWindow *w, void *data) { - uiControlDestroy(uiControl(mainwin)); + uiControlDestroy(uiControl(w)); uiQuit(); return 0; }