[longomatch] Remove timeout on dispose
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Remove timeout on dispose
- Date: Mon, 28 Jul 2014 13:38:14 +0000 (UTC)
commit 00550cf9a4baf9087862248c39e8b026d957ed51
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Jul 16 18:32:30 2014 +0200
Remove timeout on dispose
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index 8459421..a90ca07 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -103,6 +103,10 @@ namespace LongoMatch.Gui
#endregion
protected override void OnDestroyed ()
{
+ if (timeout != 0) {
+ GLib.Source.Remove (timeout);
+ timeout = 0;
+ }
player.Dispose ();
blackboard.Dispose ();
base.OnDestroyed ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]