[Scummvm-git-logs] scummvm master -> 5fd3e72411b107ed470286ea41c0a878f92d789a

grisenti noreply at scummvm.org
Thu Dec 7 08:33:49 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5fd3e72411 HPL1: Fix memory leak


Commit: 5fd3e72411b107ed470286ea41c0a878f92d789a
    https://github.com/scummvm/scummvm/commit/5fd3e72411b107ed470286ea41c0a878f92d789a
Author: grisenti (emanuele at grisenti.net)
Date: 2023-12-07T09:29:59+01:00

Commit Message:
HPL1: Fix memory leak

Changed paths:
    engines/hpl1/penumbra-overture/GameEnemy_Worm.cpp


diff --git a/engines/hpl1/penumbra-overture/GameEnemy_Worm.cpp b/engines/hpl1/penumbra-overture/GameEnemy_Worm.cpp
index c0ebdd0bf8e..62e2b5cbee0 100644
--- a/engines/hpl1/penumbra-overture/GameEnemy_Worm.cpp
+++ b/engines/hpl1/penumbra-overture/GameEnemy_Worm.cpp
@@ -483,6 +483,7 @@ cGameEnemy_Worm::~cGameEnemy_Worm() {
 		mpInit->mpGame->GetScene()->GetWorld3D()->DestroySoundEntity(mpMoveSound);
 
 	STLDeleteAll(mvTailSegments);
+	hplDelete(mpMeshCallback);
 }
 
 //-----------------------------------------------------------------------




More information about the Scummvm-git-logs mailing list