Centralize retained widget node destruction
This commit is contained in:
@@ -1778,6 +1778,6 @@ void CanvasModeFloodFill::enter(kCanvasMode prev)
|
||||
|
||||
void CanvasModeFloodFill::leave(kCanvasMode next)
|
||||
{
|
||||
m_tool->destroy();
|
||||
pp::panopainter::destroy_legacy_node(*m_tool);
|
||||
m_tool = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user