summaryrefslogtreecommitdiff
path: root/tipper/popwin.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-10-31 04:20:57 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-10-31 04:20:57 +0000
commit8b2a671e834c8ded28924a0e27218127588a250d (patch)
tree8a85edad426685c61d52953093a3b504c73308fd /tipper/popwin.cpp
parentc33fc11c302b8a477acb6770ee2b187d822629a5 (diff)
memory handling bugfix for unknown contacts (patch from Bryan Aldrich - thx)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@376 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r--tipper/popwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp
index 4912c96..a2964c5 100644
--- a/tipper/popwin.cpp
+++ b/tipper/popwin.cpp
@@ -575,7 +575,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
free(pwd->rows[i].swzLabel);
free(pwd->rows[i].swzValue);
}
- free(pwd->rows);
+ if(pwd->rows) free(pwd->rows);
if(pwd->hBm) DeleteObject(pwd->hBm);
free(pwd); pwd = 0;