summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tipper/popwin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp
index 59783ba..e241464 100644
--- a/tipper/popwin.cpp
+++ b/tipper/popwin.cpp
@@ -689,8 +689,10 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
free(pwd->rows[pwd->row_count].swzLabel);
free(pwd->rows[pwd->row_count].swzValue);
- if(pwd->row_count == 0)
+ if(pwd->row_count == 0) {
free(pwd->rows);
+ pwd->rows = NULL;
+ }
}
SendMessage(hwnd, PUM_GETHEIGHT, 0, 0); // calculate window height