diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-10 17:12:19 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-10 17:12:19 +0300 |
commit | 271ae145aa8515edb34fb9b5407ada242928dd66 (patch) | |
tree | a6ce64d145a1fcce3ff17158b70bfecfa8e1a797 /plugins/NewStory/src/templates.h | |
parent | c6cfee9f2c096278dae31d241cc814d10fee806e (diff) |
NS: another memleak fixed
Diffstat (limited to 'plugins/NewStory/src/templates.h')
-rw-r--r-- | plugins/NewStory/src/templates.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/NewStory/src/templates.h b/plugins/NewStory/src/templates.h index 7cee810fb1..c85f570562 100644 --- a/plugins/NewStory/src/templates.h +++ b/plugins/NewStory/src/templates.h @@ -9,6 +9,9 @@ enum struct TemplateVars { + TemplateVars(); + ~TemplateVars(); + struct { wchar_t *val; bool del; @@ -76,7 +79,9 @@ extern TemplateInfo templates[TPL_COUNT]; void LoadTemplates(); void SaveTemplates(); -wchar_t* TplFormatString(int tpl, MCONTACT hContact, ItemData *args); -wchar_t* TplFormatStringEx(int tpl, wchar_t *sztpl, MCONTACT hContact, ItemData *args); +CMStringA TplFormatRtf(int tpl, MCONTACT hContact, ItemData *args); +wchar_t* TplFormatString(int tpl, MCONTACT hContact, ItemData * item); +wchar_t* TplFormatStringEx(int tpl, wchar_t *sztpl, MCONTACT hContact, ItemData *args); + #endif // __templates_h__
\ No newline at end of file |