summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-22 00:14:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-22 00:14:10 +0300
commit5355f4d52bd2173fe7222de9670aa684de4583c3 (patch)
treec4aea1d674fa527109897b9e9e3c4fb2910e3291 /protocols
parent6d6d050edcf0ec82c5181075878d200fafb6b27c (diff)
minor code cleaning
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_form.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_form.cpp b/protocols/JabberG/src/jabber_form.cpp
index e3366258eb..11ce4add0b 100644
--- a/protocols/JabberG/src/jabber_form.cpp
+++ b/protocols/JabberG/src/jabber_form.cpp
@@ -621,7 +621,7 @@ TiXmlElement* JabberFormGetData(HWND hwndStatic, TiXmlDocument *doc, TiXmlElemen
return x.ToElement()->DeepClone(doc)->ToElement();
}
-struct JABBER_FORM_INFO
+struct JABBER_FORM_INFO : public MZeroedObject
{
~JABBER_FORM_INFO();
@@ -781,7 +781,6 @@ static VOID CALLBACK JabberFormCreateDialogApcProc(void* param)
void CJabberProto::FormCreateDialog(const TiXmlElement *xNode, char *defTitle, JABBER_FORM_SUBMIT_FUNC pfnSubmit, void *userdata)
{
JABBER_FORM_INFO *jfi = new JABBER_FORM_INFO;
- memset(jfi, 0, sizeof(JABBER_FORM_INFO));
jfi->ppro = this;
jfi->xNode = xNode->DeepClone(&jfi->doc)->ToElement();
if (defTitle)