mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Properly free uipopup_describe
instances
This commit is contained in:
parent
72409622ef
commit
a3d2c2c044
2 changed files with 14 additions and 14 deletions
|
@ -303,14 +303,7 @@ UINotepad::~UINotepad()
|
|||
for (int j = inner->NumObjects(); j > 0; j--) {
|
||||
uipopup_describe *uipd = inner->ObjectAt(j);
|
||||
inner->RemoveObjectAt(j);
|
||||
// NOTE: `delete uipd` is intentionally missing here!
|
||||
// Since uipds created for this class have data fields
|
||||
// that contain pointers only to static Event objects,
|
||||
// the fields don't need to be cleaned up as they weren't
|
||||
// dynamically allocated in the first place.
|
||||
// See UINotepad::Create for reference.
|
||||
// However, FIXME: the uipds themselves should still
|
||||
// get cleaned up, but that doesn't happen yet.
|
||||
delete uipd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue