From e40c5381c1338ab0bf7e6d409180d95c8d8e458d Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Tue, 21 Apr 2020 16:23:36 +0200 Subject: fix GDI leak in notebook --- alf/alfnotebook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alf/alfnotebook.cpp b/alf/alfnotebook.cpp index 1db4011..a2a21f1 100644 --- a/alf/alfnotebook.cpp +++ b/alf/alfnotebook.cpp @@ -180,7 +180,7 @@ ALF_Notebook_InternalPaint(HWND hwnd, ALFNotebookPriv *priv, HDC dc, RECT *f) MapWindowRect(priv->hwndTabCtrl, hwnd, &r); SIZE s; - if (SUCCEEDED(ALF_Compat_GetThemePartSize(priv->hTheme, GetDC(NULL), TABP_BODY, 0, NULL, TS_TRUE, &s))) { + if (SUCCEEDED(ALF_Compat_GetThemePartSize(priv->hTheme, dc, TABP_BODY, 0, NULL, TS_TRUE, &s))) { // windows dialog tab panes tile the background horizontally for (int x = r.left; x < r.right; x += s.cx) { RECT r2 = { x, r.top, x + s.cx, r.bottom }; -- cgit v1.2.3