summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2017-06-22 17:24:56 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2017-06-22 17:24:56 -0400
commitd377cd5610b419cfd5f24f690dc5de27414aff44 (patch)
tree4fcfcebd5f281011d9b2d155b71bebeb2e4d32bd
parent87d10ddf9413003579a6fc3be05a8f0dfc86b626 (diff)
downloadsdl_core-d377cd5610b419cfd5f24f690dc5de27414aff44.tar.gz
Fix resource leakhotfix/resource_leak
The `release` function for `auto_ptr` does not free the allocated memory, `reset` does.
-rw-r--r--src/components/utils/src/timer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/utils/src/timer.cc b/src/components/utils/src/timer.cc
index 642f16e574..b819b56f54 100644
--- a/src/components/utils/src/timer.cc
+++ b/src/components/utils/src/timer.cc
@@ -64,7 +64,7 @@ timer::Timer::~Timer() {
StopDelegate();
single_shot_ = true;
- delegate_.release();
+ delegate_.reset();
DeleteThread(thread_);
DCHECK(task_);
delete task_;