Skip to content

Commit 16bf636

Browse files
committed
Reactivate from_raw check
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
1 parent 235ed8b commit 16bf636

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rclrs/src/lifecycle_node/state.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ impl State {
110110
if state_handle.is_null() {
111111
return Ok(());
112112
}
113-
114-
//if !self.from_raw {
113+
114+
if !self.from_raw {
115115
// SAFETY: By this point, we should have confirmed that state_handle still exists
116116
unsafe {
117117
rcl_lifecycle_state_fini(state_handle.as_mut().unwrap(), &self.allocator).ok()?;
118118
}
119-
//}
119+
}
120120

121121
Ok(())
122122
}

0 commit comments

Comments
 (0)