[longomatch] Disconnect event brokers events correctly on dispose
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Disconnect event brokers events correctly on dispose
- Date: Tue, 5 May 2015 09:09:37 +0000 (UTC)
commit d46590b99dff23310254ef86192c0d109c368c82
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Apr 29 19:43:41 2015 +0200
Disconnect event brokers events correctly on dispose
.../Gui/Component/SynchronizationWidget.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
b/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
index ca09325..8663fbe 100644
--- a/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/SynchronizationWidget.cs
@@ -131,6 +131,8 @@ namespace LongoMatch.Gui.Component
protected override void OnDestroyed ()
{
Config.EventsBroker.SeekEvent -= Seek;
+ Config.EventsBroker.TogglePlayEvent -= HandleTogglePlayEvent;
+ Config.EventsBroker.KeyPressed -= HandleKeyPressed;
main_cam_playerbin.Destroy ();
sec_cam_playerbin.Destroy ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]