summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins/AdvancedAutoAway/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-23 21:52:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-23 21:52:01 +0000
commitef592f945f28b8167b88ef8a81cadc1a5846495e (patch)
tree6f2dfa8b25557e80fd0c5b414c40403822c87ef2 /plugins/StatusPlugins/AdvancedAutoAway/main.cpp
parentb6b397336bddfdeceb9c6b2526621f1295cacb72 (diff)
- added fullscreen detection into AAA;
- removed bunch of old clutches from it; - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@7362 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/AdvancedAutoAway/main.cpp')
-rw-r--r--plugins/StatusPlugins/AdvancedAutoAway/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp
index ac41956d2d..92d11fda43 100644
--- a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp
+++ b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp
@@ -24,7 +24,6 @@
#include "advancedautoaway.h"
#include "../resource.h"
-
HINSTANCE hInst, hCore = NULL;
CLIST_INTERFACE *pcli;
@@ -77,11 +76,9 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_AUTOAW
extern "C" __declspec(dllexport) int Load(void)
{
- mir_getLP( &pluginInfoEx );
+ mir_getLP(&pluginInfoEx);
mir_getCLI();
- autoAwaySettings = new OBJLIST<TAAAProtoSetting>(10, CompareSettings);
-
InitCommonStatus();
hCSModuleLoadedHook = HookEvent(ME_SYSTEM_MODULESLOADED, CSModuleLoaded);
hStateChangedEvent = CreateHookableEvent(ME_AAA_STATECHANGED);
@@ -93,7 +90,6 @@ extern "C" __declspec(dllexport) int Load(void)
extern "C" __declspec(dllexport) int Unload(void)
{
- DestroyHookableEvent( hStateChangedEvent );
- delete autoAwaySettings;
+ DestroyHookableEvent(hStateChangedEvent);
return 0;
}