Fix some memory leaks

This commit is contained in:
GriffinR
2025-02-07 19:27:54 -05:00
parent 01126a888a
commit c49470c47e
9 changed files with 67 additions and 81 deletions

View File

@@ -109,14 +109,15 @@ public:
void toggleBorderVisibility(bool visible, bool enableScriptCallback = true);
void updateCustomMapAttributes();
DraggablePixmapItem *addMapEvent(Event *event);
DraggablePixmapItem *addEventPixmapItem(Event *event);
void removeEventPixmapItem(Event *event);
bool eventLimitReached(Map *, Event::Type);
void selectMapEvent(DraggablePixmapItem *object, bool toggle = false);
DraggablePixmapItem *addNewEvent(Event::Type type);
void updateSelectedEvents();
void duplicateSelectedEvents();
void redrawObject(DraggablePixmapItem *item);
QList<DraggablePixmapItem *> getObjects();
void redrawEventPixmapItem(DraggablePixmapItem *item);
QList<DraggablePixmapItem *> getEventPixmapItems();
void updateCursorRectPos(int x, int y);
void setCursorRectVisible(bool visible);