View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002091VCMIGUI - Otherpublic2015-02-15 15:502016-01-17 12:36
Assigned ToSXX 
PlatformOSOS Version
Product Version0.97b 
Target VersionFixed in Version0.97c 
Summary0002091: Keeping pressed any hotkey button on keyboard lead to significant memory leak
DescriptionAs summary says, keeping pressed any hotkey button on keyboard lead to significant memory leak both in pregame GUI or in anywhere else.
Simply launch VCMI_client and in the menu keep pressed, eg. 'N' hotkey for New Game option.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
SXX (administrator)
2015-02-15 17:23

I already investigated this one from my personal interest. According to Massif biggest leak everywhere is inside CButton::leftClick that lead to SoundHandler::GetSoundChunk, but it's not problem with "chunk" as far as I remember. E.g it's something wrong within CSoundHandler::GetSoundChunk or even in SDL2 (though I doubt it).
SXX (administrator)
2015-02-15 17:48

Oh, feel myself a dumb. Previous time when I tried to fix it I'd edited wrong "CSoundHandler::playSound" function. Basically we just need to use "Mix_FreeChunk" in both of them (when chunk playback finished of course).
SXX (administrator)
2015-02-15 18:11

Though once I fixed this massif start crashing for me. :-)
So can only make sure it's fixed by testing.

Though I'll make some more code cleanup here and then likely sent pull request for review.
SXX (administrator)
2015-02-15 20:03

Pull request: [^]
SXX (administrator)
2015-02-15 22:08

Should be now fixed in git: [^]

- Issue History
Date Modified Username Field Change
2015-02-15 15:50 Kantor New Issue
2015-02-15 17:23 SXX Note Added: 0005514
2015-02-15 17:23 SXX Assigned To => SXX
2015-02-15 17:23 SXX Status new => confirmed
2015-02-15 17:48 SXX Note Added: 0005515
2015-02-15 18:11 SXX Note Added: 0005516
2015-02-15 20:03 SXX Note Added: 0005517
2015-02-15 22:08 SXX Note Added: 0005518
2015-02-15 22:08 SXX Status confirmed => resolved
2015-02-15 22:08 SXX Fixed in Version => 0.97c
2015-02-15 22:08 SXX Resolution open => fixed
2016-01-17 12:36 SXX Status resolved => closed

Site | Forums | Wiki | Slack | GitHub

Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean