item-view.example and clipping.example crash with debug builds without this patch
Change-Id: Icacb213e435cdc831da24e146cc50f47a29b3e37
Timer::~Timer()
{
- // stop timers
- Stop();
-
+ ResetTimerData();
delete mImpl;
}
// Timer should be used in the event thread
DALI_ASSERT_DEBUG( Adaptor::IsAvailable() );
- if (mImpl->mId != NULL)
- {
- ecore_timer_del(mImpl->mId);
- mImpl->mId = NULL;
- }
+ ResetTimerData();
}
void Timer::SetInterval( unsigned int interval )
return mTickSignal;
}
+void Timer::ResetTimerData()
+{
+ if (mImpl->mId != NULL)
+ {
+ ecore_timer_del(mImpl->mId);
+ mImpl->mId = NULL;
+ }
+}
+
bool Timer::IsRunning() const
{
return mImpl->mId != NULL;
#define __DALI_INTERNAL_TIMER_H__
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Timer( const Timer& );
Timer& operator=( const Timer& );
+ /**
+ * Resets any stored timer data.
+ */
+ void ResetTimerData();
+
private: // Data
Dali::Timer::TimerSignalType mTickSignal;