Fixed some memory leaks and uses of uninitialized values
This commit is contained in:
parent
48156cb4bf
commit
0cc326bcc9
12 changed files with 28 additions and 21 deletions
|
|
@ -359,6 +359,11 @@ void DrawingProgram::update() {
|
|||
selection.update();
|
||||
drawTool->tool_update();
|
||||
|
||||
if(toolToSwitchToAfterUpdate) {
|
||||
switch_to_tool_ptr(std::move(toolToSwitchToAfterUpdate));
|
||||
toolToSwitchToAfterUpdate = nullptr;
|
||||
}
|
||||
|
||||
if(controls.leftClickReleased)
|
||||
controls.leftClickReleased = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue