[longomatch] Dipose the timer correctly in the timeline when destroyed



commit e49367db9d08bc5d71f4e7158ce58a8f6d0792a1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Oct 9 18:05:32 2014 +0200

    Dipose the timer correctly in the timeline when destroyed

 LongoMatch.GUI/Gui/Component/Timeline.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/Timeline.cs b/LongoMatch.GUI/Gui/Component/Timeline.cs
index 3f08e15..ff13e7e 100644
--- a/LongoMatch.GUI/Gui/Component/Timeline.cs
+++ b/LongoMatch.GUI/Gui/Component/Timeline.cs
@@ -73,6 +73,10 @@ namespace LongoMatch.Gui.Component
 
                protected override void OnDestroyed ()
                {
+                       if (timeoutID != 0) {
+                               GLib.Source.Remove (timeoutID);
+                               timeoutID = 0;
+                       }
                        timerule.Dispose ();
                        timeline.Dispose ();
                        labels.Dispose ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]