Skip to content

Commit

Permalink
misc. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNathannator committed Aug 22, 2024
1 parent 549f28a commit 997e1dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/system/obj/MessageTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "os/Timer.h"
#include "os/Debug.h"
#include "utl/Symbol.h"
#include "utl/STLHelpers.h"

class ObjEntry {
public:
Expand All @@ -21,6 +22,12 @@ class EventEntry {
Symbol msgs; // 0x0
std::vector<ObjEntry*> objs; // 0x4

~EventEntry() {
for (int i = 0; i < objs.size(); i++) {
delete objs[i];
}
}

void Dump(){
float total = 0.0f;
for(int i = 0; i < objs.size(); i++){
Expand Down
1 change: 1 addition & 0 deletions src/system/ui/UIList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ UIList::~UIList(){
for(std::list<UIList*>::iterator it = sUIListSet.begin(); it != sUIListSet.end(); it++){
if(*it == this){
it = sUIListSet.erase(it);
break;
}
}
DeleteAll(mWidgets);
Expand Down

0 comments on commit 997e1dd

Please sign in to comment.