Hot-fix follow up 71a0b626a9

This commit is contained in:
YuSanka 2022-12-08 09:39:36 +01:00
parent 71a0b626a9
commit 6d1eec0da6

View File

@ -1418,8 +1418,7 @@ void ColourPicker::sys_color_changed()
PointCtrl::~PointCtrl()
{
if (sizer) {
sizer->Clear();
if (sizer && sizer->IsEmpty()) {
delete sizer;
sizer = nullptr;
}