From 8b2a671e834c8ded28924a0e27218127588a250d Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 31 Oct 2007 04:20:57 +0000 Subject: 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 --- tipper/popwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tipper/popwin.cpp') 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; -- cgit v1.2.3