Skip to content

Commit

Permalink
Avoid leak in color picker.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Jan 30, 2025
1 parent edccc6f commit 6ab7e04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/scene/test_color_picker.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ TEST_CASE("[SceneTree][ColorPicker]") {
SEND_GUI_MOUSE_MOTION_EVENT(pos_left, MouseButtonMask::NONE, Key::NONE);
CHECK(cp->get_pick_color().r > 0.5); // Issue GH-77773.
}
root->remove_child(cp);
memdelete(cp);
}

} // namespace TestColorPicker
Expand Down

0 comments on commit 6ab7e04

Please sign in to comment.