diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-02 14:58:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-02 14:58:49 +0000 |
commit | ecdc77ebc3fee24080d0acaf34c6a1b8e949ad03 (patch) | |
tree | 6380c2a54e33095643e79d40de012de6abd02e4b /plugins/StatusPlugins/StartupStatus/startupstatus.h | |
parent | c4158714534acd1e6edbffca9da3536e98d951f0 (diff) |
fix for the StartupStatus options
git-svn-id: http://svn.miranda-ng.org/main/trunk@715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus/startupstatus.h')
-rw-r--r-- | plugins/StatusPlugins/StartupStatus/startupstatus.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/startupstatus.h b/plugins/StatusPlugins/StartupStatus/startupstatus.h index e3ce6e8acb..b7681952c9 100644 --- a/plugins/StatusPlugins/StartupStatus/startupstatus.h +++ b/plugins/StatusPlugins/StartupStatus/startupstatus.h @@ -42,13 +42,24 @@ struct TSSSetting : public PROTOCOLSETTINGEX typedef OBJLIST<TSSSetting> TSettingsList;
-typedef struct {
+struct PROFILECE
+{
int profile;
char *szProto;
char *msg;
-} PROFILECE;
+};
+
+struct PROFILEOPTIONS
+{
+ __inline void* operator new( size_t size ) { return mir_calloc(size); }
+ __inline void operator delete( void* p ) { mir_free(p); }
+ __inline ~PROFILEOPTIONS()
+ {
+ delete ps;
+ if (szName != NULL)
+ mir_free(szName);
+ }
-typedef struct {
char *szName;
TSettingsList* ps;
BOOL showDialog;
@@ -57,7 +68,7 @@ typedef struct { BOOL inSubMenu;
BOOL regHotkey;
WORD hotKey;
-} PROFILEOPTIONS;
+};
typedef struct {
ATOM id;
|