projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Save value to prevent duplicate deletion
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
system
/
common
/
trigger-event.cpp
diff --git
a/dali/internal/system/common/trigger-event.cpp
b/dali/internal/system/common/trigger-event.cpp
index
1f94e51
..
8f769af
100644
(file)
--- a/
dali/internal/system/common/trigger-event.cpp
+++ b/
dali/internal/system/common/trigger-event.cpp
@@
-104,11
+104,14
@@
void TriggerEvent::Triggered(FileDescriptorMonitor::EventType eventBitMask, int
DALI_LOG_WARNING("Unable to read to UpdateEvent File descriptor\n");
}
DALI_LOG_WARNING("Unable to read to UpdateEvent File descriptor\n");
}
+ // Save value to prevent duplicate deletion
+ TriggerEventInterface::Options options = mOptions;
+
// Call the connected callback
CallbackBase::Execute(*mCallback);
//check if we should delete ourselves after the trigger
// Call the connected callback
CallbackBase::Execute(*mCallback);
//check if we should delete ourselves after the trigger
- if(
mO
ptions == TriggerEventInterface::DELETE_AFTER_TRIGGER)
+ if(
o
ptions == TriggerEventInterface::DELETE_AFTER_TRIGGER)
{
delete this;
}
{
delete this;
}