libertyernie / brawltools

BrawlBox and BrawlLib
http://forums.kc-mm.com/index.php?topic=67847.0
142 stars 31 forks source link

Memory Leak Upon Opening New File On Top of Another? #184

Open gheskett opened 6 years ago

gheskett commented 6 years ago

I have found BrawlBox suffers from a major memory leak that (I think) involves opening an RSTM stream on top of another. The weird thing though is that PCM16 streams appear to be the only ones that cause an issue, but ADPCM is fine. My guess is that BrawlBox is just failing/forgetting to close the old stream, but it could be something else entirely since the PCM16 streams appear to use crazy (potentially unfreed) amounts of memory upon initially being loaded relative to the ADPCM streams.