blob: 7eae1c6f2de61543521dfbc04cfa0b2e4585e85e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git src/TimeLine.h src/TimeLine.h
index 46db996..7997c7b 100644
--- src/TimeLine.h
+++ src/TimeLine.h
@@ -115,8 +115,7 @@ class guTimeLine
virtual void TimerEvent( void );
virtual int TimerCreate( void );
- virtual void TimerDestroy( void ) { g_source_remove( m_TimerId ); }
-
+ virtual void TimerDestroy( void ) { int id = m_TimerId; m_TimerId = 0; if (id) g_source_remove( id ); }
};
#endif
|