summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_userinfo.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-02-28 11:47:11 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-02-28 11:47:11 +0000
commita1009bf5a26ec6e13badf360278765ea8c0f0edd (patch)
tree3deac61399b3d6cf9a5237622833fe9098550191 /protocols/JabberG/src/jabber_userinfo.cpp
parente44d626b32c534cace3a54d54778dfa9cf3599c9 (diff)
Jabber:
-minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12286 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_userinfo.cpp')
-rw-r--r--protocols/JabberG/src/jabber_userinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp
index c392175dd4..34b9ad249c 100644
--- a/protocols/JabberG/src/jabber_userinfo.cpp
+++ b/protocols/JabberG/src/jabber_userinfo.cpp
@@ -578,12 +578,12 @@ static INT_PTR CALLBACK JabberUserInfoDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa
break;
case WM_DESTROY:
- dat->ppro->WindowUnsubscribe(hwndDlg);
- WindowList_Remove(hUserInfoList, hwndDlg);
if (dat) {
+ dat->ppro->WindowUnsubscribe(hwndDlg);
mir_free(dat);
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
}
+ WindowList_Remove(hUserInfoList, hwndDlg);
ImageList_Destroy(TreeView_SetImageList(GetDlgItem(hwndDlg, IDC_TV_INFO), NULL, TVSIL_NORMAL));
WindowFreeIcon(hwndDlg);
break;