From 2517546be1599c63843e45bf1ac6c9ddb9c0dbf4 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Wed, 2 Jan 2019 17:44:51 +0100 Subject: implement cleanup functions --- alf/alflabel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alf/alflabel.cpp') diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp index 283b99a..59e2ca3 100644 --- a/alf/alflabel.cpp +++ b/alf/alflabel.cpp @@ -68,6 +68,8 @@ ALF__LabelSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_ p->left, p->top + topPadding, p->right - p->left, p->bottom - p->top - topPadding, SWP_NOZORDER|SWP_NOACTIVATE); + } else if (uMsg == WM_DESTROY) { + app->compatFn->RemoveWindowSubclass(hwnd, ALF__LabelSubclassProc, 0); } return app->compatFn->DefSubclassProc(hwnd, uMsg, wParam, lParam); -- cgit v1.2.3