diff options
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;
|