From 286bd01e1d059cb756778b8b825fe1935d6a5150 Mon Sep 17 00:00:00 2001 From: xianjimli Date: Mon, 30 Dec 2019 17:18:11 +0800 Subject: [PATCH] fix calibration_win leak --- src/widgets/calibration_win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/calibration_win.c b/src/widgets/calibration_win.c index b870c41e1..4938a03e7 100644 --- a/src/widgets/calibration_win.c +++ b/src/widgets/calibration_win.c @@ -163,7 +163,8 @@ TK_DECL_VTABLE(calibration_win) = {.size = sizeof(calibration_win_t), .get_prop = window_base_get_prop, .on_paint_begin = window_base_on_paint_begin, .on_paint_end = window_base_on_paint_end, - .on_paint_self = calibration_win_on_paint_self}; + .on_paint_self = calibration_win_on_paint_self, + .on_destroy = window_base_on_destroy}; ret_t calibration_win_set_on_done(widget_t* widget, calibration_win_on_done_t on_done, void* ctx) { calibration_win_t* win = CALIBRATION_WIN(widget);