diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-18 08:18:13 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-18 08:18:13 +0000 |
commit | e63908912809cd6aeeeb2d068da562c227cbd3a9 (patch) | |
tree | db3d95b3fc111d31d1a4dc23d8e094990105014f /plugins/Actman/actman.dpr | |
parent | d90a9d04b3b6e2beaa31b311fd38b886a46bab72 (diff) |
clutch for pascal plugins not to eat memory on thread creation
git-svn-id: http://svn.miranda-ng.org/main/trunk@4085 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Actman/actman.dpr')
-rw-r--r-- | plugins/Actman/actman.dpr | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr index caf0319c6a..5428411585 100644 --- a/plugins/Actman/actman.dpr +++ b/plugins/Actman/actman.dpr @@ -136,7 +136,7 @@ begin LoadGroups;
RegisterIcons;
-
+
opthook :=HookEvent(ME_OPT_INITIALISE ,@OnOptInitialise);
hHookShutdown:=HookEvent(ME_SYSTEM_SHUTDOWN{ME_SYSTEM_OKTOEXIT},@PreShutdown);
NotifyEventHooks(hHookChanged,twparam(ACTM_LOADED),0);
@@ -183,7 +183,9 @@ begin end;
exports
- Load, Unload,
- MirandaPluginInfoEx;
+ Load, Unload, MirandaPluginInfoEx;
+
+initialization
+ DisableThreadLibraryCalls(hInstance);
end.
|