diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2017-06-22 17:24:56 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2017-06-22 17:24:56 -0400 |
commit | d377cd5610b419cfd5f24f690dc5de27414aff44 (patch) | |
tree | 4fcfcebd5f281011d9b2d155b71bebeb2e4d32bd | |
parent | 87d10ddf9413003579a6fc3be05a8f0dfc86b626 (diff) | |
download | sdl_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.cc | 2 |
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_; |