diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-31 12:34:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-31 12:34:45 +0300 |
commit | 7b5c945859e92b1921313da3bbd5dc332ac62910 (patch) | |
tree | 0d6cf893e76e3eee1bb913b7798e75695ae8d3cd /src/mir_core | |
parent | cffe05b54d4ebed92421397015f949ecfa6d6764 (diff) |
couple of memleak fixes
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/subclass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_core/src/subclass.cpp b/src/mir_core/src/subclass.cpp index f917646bb7..9188ad60aa 100644 --- a/src/mir_core/src/subclass.cpp +++ b/src/mir_core/src/subclass.cpp @@ -58,6 +58,9 @@ static LRESULT CALLBACK MSubclassWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP MIR_CORE_DLL(void) mir_subclassWindow(HWND hWnd, WNDPROC wndProc)
{
+ if (hWnd == nullptr)
+ return;
+
MSubclassData *p = arSubclass.find((MSubclassData*)&hWnd);
if (p == NULL) {
p = new MSubclassData;
|