[Scummvm-tracker] [ScummVM] #10207: TITANIC: Memory leaks in QSoundManager

dafioram trac at scummvm.org
Fri Sep 22 03:25:46 CEST 2017


#10207: TITANIC: Memory leaks in QSoundManager
-------------------------------+-----------------------------
  Reporter:  csnover           |      Owner:  (none)
      Type:  defect            |     Status:  new
  Priority:  normal            |  Component:  Engine: Titanic
Resolution:                    |   Keywords:
      Game:  Starship Titanic  |
-------------------------------+-----------------------------

Comment (by dafioram):

 helmet sounds when on the bridge.
 8f6649cfb13be47f9fadfe50d31a0c0f2b8a28d1

 {{{
 ==28531== 63,620 (72 direct, 63,548 indirect) bytes in 1 blocks are
 definitely lost in loss record 2,335 of 2,356
 ==28531==    at 0x4C2E0EF: operator new(unsigned long) (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==28531==    by 0x50EFA8:
 Titanic::QSoundManager::loadSound(Titanic::CString const&)
 (sound_manager.cpp:123)
 ==28531==    by 0x50D820: Titanic::CSound::loadSound(Titanic::CString
 const&) (sound.cpp:138)
 ==28531==    by 0x50D8E0: Titanic::CSound::playSound(Titanic::CString
 const&, Titanic::CProximity&) (sound.cpp:158)
 ==28531==    by 0x4288C3: Titanic::CGameObject::playSound(Titanic::CString
 const&, Titanic::CProximity&) (game_object.cpp:804)
 ==28531==    by 0x428766: Titanic::CGameObject::playSound(Titanic::CString
 const&, unsigned int, int, bool) (game_object.cpp:789)
 ==28531==    by 0x49C52A:
 Titanic::CNavHelmet::PETHelmetOnOffMsg(Titanic::CPETHelmetOnOffMsg*)
 (nav_helmet.cpp:104)
 ==28531==    by 0x4C911F: Titanic::CMessage::perform(Titanic::CTreeItem*)
 (messages.cpp:107)
 ==28531==    by 0x4C8EC4: Titanic::CMessage::execute(Titanic::CTreeItem*,
 Titanic::ClassDef const*, int) (messages.cpp:60)
 ==28531==    by 0x4F8AF1:
 Titanic::CNavigationControllerGlyph::MouseButtonUpMsg(Common::Point
 const&) (pet_remote_glyphs.cpp:557)
 ==28531==    by 0x4FF182:
 Titanic::CPetGlyphs::MouseButtonUpMsg(Common::Point const&)
 (pet_glyphs.cpp:367)
 ==28531==    by 0x4F4374:
 Titanic::CPetRemote::MouseButtonUpMsg(Titanic::CMouseButtonUpMsg*)
 (pet_remote.cpp:159)
 }}}

 {{{
 ==28531== 63,620 (72 direct, 63,548 indirect) bytes in 1 blocks are
 definitely lost in loss record 2,336 of 2,356
 ==28531==    at 0x4C2E0EF: operator new(unsigned long) (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==28531==    by 0x50EFA8:
 Titanic::QSoundManager::loadSound(Titanic::CString const&)
 (sound_manager.cpp:123)
 ==28531==    by 0x50D820: Titanic::CSound::loadSound(Titanic::CString
 const&) (sound.cpp:138)
 ==28531==    by 0x50D8E0: Titanic::CSound::playSound(Titanic::CString
 const&, Titanic::CProximity&) (sound.cpp:158)
 ==28531==    by 0x4288C3: Titanic::CGameObject::playSound(Titanic::CString
 const&, Titanic::CProximity&) (game_object.cpp:804)
 ==28531==    by 0x428766: Titanic::CGameObject::playSound(Titanic::CString
 const&, unsigned int, int, bool) (game_object.cpp:789)
 ==28531==    by 0x49C3B7:
 Titanic::CNavHelmet::PETHelmetOnOffMsg(Titanic::CPETHelmetOnOffMsg*)
 (nav_helmet.cpp:89)
 ==28531==    by 0x4C911F: Titanic::CMessage::perform(Titanic::CTreeItem*)
 (messages.cpp:107)
 ==28531==    by 0x4C8EC4: Titanic::CMessage::execute(Titanic::CTreeItem*,
 Titanic::ClassDef const*, int) (messages.cpp:60)
 ==28531==    by 0x4F2938:
 Titanic::CPetStarfield::MouseButtonDownMsg(Titanic::CMouseButtonDownMsg*)
 (pet_starfield.cpp:87)
 ==28531==    by 0x4E79F1:
 Titanic::CPetControl::MouseButtonDownMsg(Titanic::CMouseButtonDownMsg*)
 (pet_control.cpp:283)
 ==28531==    by 0x4C911F: Titanic::CMessage::perform(Titanic::CTreeItem*)
 (messages.cpp:107)
 }}}

 {{{
 ==28531== 284,120 (72 direct, 284,048 indirect) bytes in 1 blocks are
 definitely lost in loss record 2,346 of 2,356
 ==28531==    at 0x4C2E0EF: operator new(unsigned long) (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==28531==    by 0x50EFA8:
 Titanic::QSoundManager::loadSound(Titanic::CString const&)
 (sound_manager.cpp:123)
 ==28531==    by 0x50D820: Titanic::CSound::loadSound(Titanic::CString
 const&) (sound.cpp:138)
 ==28531==    by 0x50D8E0: Titanic::CSound::playSound(Titanic::CString
 const&, Titanic::CProximity&) (sound.cpp:158)
 ==28531==    by 0x4288C3: Titanic::CGameObject::playSound(Titanic::CString
 const&, Titanic::CProximity&) (game_object.cpp:804)
 ==28531==    by 0x428766: Titanic::CGameObject::playSound(Titanic::CString
 const&, unsigned int, int, bool) (game_object.cpp:789)
 ==28531==    by 0x49C4D8:
 Titanic::CNavHelmet::PETHelmetOnOffMsg(Titanic::CPETHelmetOnOffMsg*)
 (nav_helmet.cpp:103)
 ==28531==    by 0x4C911F: Titanic::CMessage::perform(Titanic::CTreeItem*)
 (messages.cpp:107)
 ==28531==    by 0x4C8EC4: Titanic::CMessage::execute(Titanic::CTreeItem*,
 Titanic::ClassDef const*, int) (messages.cpp:60)
 ==28531==    by 0x4F8AF1:
 Titanic::CNavigationControllerGlyph::MouseButtonUpMsg(Common::Point
 const&) (pet_remote_glyphs.cpp:557)
 ==28531==    by 0x4FF182:
 Titanic::CPetGlyphs::MouseButtonUpMsg(Common::Point const&)
 (pet_glyphs.cpp:367)
 ==28531==    by 0x4F4374:
 Titanic::CPetRemote::MouseButtonUpMsg(Titanic::CMouseButtonUpMsg*)
 (pet_remote.cpp:159)
 }}}

 {{{
 ==28531== 284,120 (72 direct, 284,048 indirect) bytes in 1 blocks are
 definitely lost in loss record 2,347 of 2,356
 ==28531==    at 0x4C2E0EF: operator new(unsigned long) (in
 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==28531==    by 0x50EFA8:
 Titanic::QSoundManager::loadSound(Titanic::CString const&)
 (sound_manager.cpp:123)
 ==28531==    by 0x50D820: Titanic::CSound::loadSound(Titanic::CString
 const&) (sound.cpp:138)
 ==28531==    by 0x50D8E0: Titanic::CSound::playSound(Titanic::CString
 const&, Titanic::CProximity&) (sound.cpp:158)
 ==28531==    by 0x4288C3: Titanic::CGameObject::playSound(Titanic::CString
 const&, Titanic::CProximity&) (game_object.cpp:804)
 ==28531==    by 0x428766: Titanic::CGameObject::playSound(Titanic::CString
 const&, unsigned int, int, bool) (game_object.cpp:789)
 ==28531==    by 0x49C409:
 Titanic::CNavHelmet::PETHelmetOnOffMsg(Titanic::CPETHelmetOnOffMsg*)
 (nav_helmet.cpp:90)
 ==28531==    by 0x4C911F: Titanic::CMessage::perform(Titanic::CTreeItem*)
 (messages.cpp:107)
 ==28531==    by 0x4C8EC4: Titanic::CMessage::execute(Titanic::CTreeItem*,
 Titanic::ClassDef const*, int) (messages.cpp:60)
 ==28531==    by 0x4F2938:
 Titanic::CPetStarfield::MouseButtonDownMsg(Titanic::CMouseButtonDownMsg*)
 (pet_starfield.cpp:87)
 ==28531==    by 0x4E79F1:
 Titanic::CPetControl::MouseButtonDownMsg(Titanic::CMouseButtonDownMsg*)
 (pet_control.cpp:283)
 ==28531==    by 0x4C911F: Titanic::CMessage::perform(Titanic::CTreeItem*)
 (messages.cpp:107)
 }}}

--
Ticket URL: <https://bugs.scummvm.org/ticket/10207#comment:2>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list