Cleaning up memory taken by Dictionary and DictionaryIterator is not implemented. It's my omission.
I'm working on the fix. Creating this topic so it's a known issue.
To fix it, I'll derive both Dictionary and DictionaryIterator from DObject (with all corresponding macros).
Dictionary and DictionaryIterator cause memory leaks
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- m8f
-
- Posts: 1445
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
- Contact:
Re: Dictionary and DictionaryIterator cause memory leaks
Added test file to the PR.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Dictionary and DictionaryIterator cause memory leaks
Sorry, I thought I had added this fix already.