summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2012-06-02 17:45:30 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2012-06-02 17:45:30 +0000
commit9a04d5930c26ba291b4ceee5180ec599147cdb64 (patch)
treea177c76f98fa9699e2b3b3e8e64eb0214dc4ab75
parent8558039bd3c54c57b2db0afc20e4923b68078f57 (diff)
Fixed crash
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@601 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--tipper/popwin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp
index 109c6f1..ade2440 100644
--- a/tipper/popwin.cpp
+++ b/tipper/popwin.cpp
@@ -98,8 +98,8 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
if(status >= ID_STATUS_OFFLINE && status <= ID_STATUS_IDLE)
{
- TCHAR *swzText = 0;
- char *status_msg = 0;
+ TCHAR *swzText = NULL;
+ char *status_msg = NULL;
// supported by protocols from Miranda 0.8+
TCHAR* p = (TCHAR *)CallProtoService(pwd->clcit.proto, PS_GETMYAWAYMSG, 0, SGMA_TCHAR);
@@ -129,8 +129,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
pwd->row_count++;
}
-
- if(status_msg) mir_free(status_msg);
+ mir_free(status_msg);
}
} else if(pwd->clcit.text) {
pwd->text_tip = true;