Skip to content

Commit

Permalink
Only delete eventDispatcher when useInternalEventDispatcher is true
Browse files Browse the repository at this point in the history
  • Loading branch information
parkesb committed Mar 25, 2022
1 parent 919c8d4 commit c16e93f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/ccapi_cpp/ccapi_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ class Session {
}
virtual ~Session() {
CCAPI_LOGGER_FUNCTION_ENTER;
delete this->eventDispatcher;
if (this->useInternalEventDispatcher) {
delete this->eventDispatcher;
}
CCAPI_LOGGER_FUNCTION_EXIT;
}
virtual void start() {
Expand Down

0 comments on commit c16e93f

Please sign in to comment.