Skip to content

Commit 7baeebd

Browse files
authored
additional null
1 parent 8b986bd commit 7baeebd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rclcpp/src/rclcpp/clock.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Clock::create_jump_callback(
140140
rcl_ret_t ret = rcl_clock_remove_jump_callback(&rcl_clock_, rclcpp::Clock::on_time_jump,
141141
handler);
142142
delete handler;
143+
handler = NULL;
143144
if (RCL_RET_OK != ret) {
144145
RCUTILS_LOG_ERROR("Failed to remove time jump callback");
145146
}

0 commit comments

Comments
 (0)