mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-09 06:15:49 +02:00
Reset notification mouse hook variable when disposing
This commit is contained in:
parent
af9a503f3c
commit
2f2e2b82b8
@ -28,8 +28,8 @@ sealed partial class FormNotification : Form{
|
||||
private readonly bool autoHide;
|
||||
private int timeLeft, totalTime;
|
||||
|
||||
private readonly IntPtr mouseHook;
|
||||
private readonly NativeMethods.HookProc mouseHookDelegate;
|
||||
private IntPtr mouseHook;
|
||||
|
||||
private bool? prevDisplayTimer;
|
||||
private int? prevFontSize;
|
||||
@ -203,6 +203,7 @@ private void FormNotification_Disposed(object sender, EventArgs e){
|
||||
|
||||
if (mouseHook != IntPtr.Zero){
|
||||
NativeMethods.UnhookWindowsHookEx(mouseHook);
|
||||
mouseHook = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user