summaryrefslogtreecommitdiff
path: root/plugins/Watrack/kolframe/kolframe.pas
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-10 19:12:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-10 19:12:33 +0000
commit6ad65c4d4fce1d5ce1a1873ee84feaff753c9d48 (patch)
tree94e232bdd680291eb7192851d71935f89b196fd2 /plugins/Watrack/kolframe/kolframe.pas
parent9a4be1a673e76cb205a11076b7d8162eb593feab (diff)
Watrack:
- event hooks wiped out; - icons & menus optimization; - merge of memory leak fix git-svn-id: http://svn.miranda-ng.org/main/trunk@3963 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/kolframe/kolframe.pas')
-rw-r--r--plugins/Watrack/kolframe/kolframe.pas8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Watrack/kolframe/kolframe.pas b/plugins/Watrack/kolframe/kolframe.pas
index 615991d810..4e93b6dcc2 100644
--- a/plugins/Watrack/kolframe/kolframe.pas
+++ b/plugins/Watrack/kolframe/kolframe.pas
@@ -223,7 +223,7 @@ begin
PWATFrameData(FrameCtrl.CustomData).FrameId:=CallService(MS_CLIST_FRAMES_ADDFRAME,dword(@CLFrame),0);
if PWATFrameData(FrameCtrl.CustomData).FrameId>=0 then
begin
- plStatusHook:=HookEvent(ME_WAT_NEWSTATUS,@NewPlStatus);
+ HookEvent(ME_WAT_NEWSTATUS,@NewPlStatus);
end;
end;
result:=FrameWnd<>0;
@@ -235,8 +235,6 @@ var
begin
if (FrameCtrl<>nil) and (PWATFrameData(FrameCtrl.CustomData).FrameId>=0) then
begin
- UnhookEvent(plStatusHook);
-
id:=PWATFrameData(FrameCtrl.CustomData).FrameId;
FrameCtrl.Free;
FrameCtrl:=nil;
@@ -273,7 +271,7 @@ begin
result:=ord(CreateFrame(0));
if result<>0 then
- sic:=HookEvent(ME_SKIN2_ICONSCHANGED,@IconChanged);
+ HookEvent(ME_SKIN2_ICONSCHANGED,@IconChanged);
end;
procedure DeInitProc(aSetDisable:boolean);
@@ -281,8 +279,6 @@ begin
if aSetDisable then
SetModStatus(0);
- if sic<>0 then UnhookEvent(sic);
- sic:=0;
DestroyFrame;
end;