summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/templates.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-10 17:12:19 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-10 17:12:19 +0300
commit271ae145aa8515edb34fb9b5407ada242928dd66 (patch)
treea6ce64d145a1fcce3ff17158b70bfecfa8e1a797 /plugins/NewStory/src/templates.h
parentc6cfee9f2c096278dae31d241cc814d10fee806e (diff)
NS: another memleak fixed
Diffstat (limited to 'plugins/NewStory/src/templates.h')
-rw-r--r--plugins/NewStory/src/templates.h9
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