From 3ed8130e44a7f076fba9f4957c09920716441f48 Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Sun, 4 Nov 2012 22:20:53 +0000
Subject: crash fix

git-svn-id: http://svn.miranda-ng.org/main/trunk@2200 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/Clist_modern/src/modern_toolbar.cpp | 1 +
 1 file changed, 1 insertion(+)

(limited to 'plugins/Clist_modern')

diff --git a/plugins/Clist_modern/src/modern_toolbar.cpp b/plugins/Clist_modern/src/modern_toolbar.cpp
index 95ba2715ed..7a0c0d741f 100644
--- a/plugins/Clist_modern/src/modern_toolbar.cpp
+++ b/plugins/Clist_modern/src/modern_toolbar.cpp
@@ -266,6 +266,7 @@ static LRESULT CALLBACK toolbarWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA
 
 	case WM_DESTROY:
 		xpt_FreeThemeForWindow(hwnd);
+		CallService(MS_SKINENG_REGISTERPAINTSUB, (WPARAM)hwnd, 0);
 
 	default:
 		return 0;
-- 
cgit v1.2.3