Dictionary and DictionaryIterator cause memory leaks

Bugs that have been investigated and resolved somehow.

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.
Post Reply
User avatar
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:

Dictionary and DictionaryIterator cause memory leaks

Post by m8f »

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).
User avatar
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

Post by m8f »

User avatar
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

Post by m8f »

Added test file to the PR.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Dictionary and DictionaryIterator cause memory leaks

Post by Graf Zahl »

Sorry, I thought I had added this fix already.
Post Reply

Return to “Closed Bugs [GZDoom]”