Fixed some memory leaks and uses of uninitialized values

This commit is contained in:
Yousef Khadadeh 2025-10-11 15:35:17 +03:00
parent 48156cb4bf
commit 0cc326bcc9
12 changed files with 28 additions and 21 deletions

View file

@ -14,5 +14,5 @@ class RectDrawEditTool : public DrawingProgramEditToolBase {
virtual bool edit_update(const std::shared_ptr<DrawComponent>& comp) override;
virtual bool edit_gui(const std::shared_ptr<DrawComponent>& comp) override;
private:
DrawRectangle::Data oldData;
std::optional<DrawRectangle::Data> oldData;
};