Unhook event handlers

This commit is contained in:
amaitland
2014-08-26 14:54:13 +10:00
parent 902d61094e
commit edf100c7a3
+8
View File
@@ -334,6 +334,14 @@ namespace CefSharp.Wpf
protected virtual void Dispose(bool isdisposing)
{
Loaded -= OnLoaded;
Unloaded -= OnUnloaded;
GotKeyboardFocus -= OnGotKeyboardFocus;
LostKeyboardFocus -= OnLostKeyboardFocus;
IsVisibleChanged -= OnIsVisibleChanged;
Cef.RemoveDisposable(this);
foreach (var disposable in disposables)