[Scummvm-git-logs] scummvm master -> 08f754bbeb123a89151d83b2278df52010f8abd4
aquadran
noreply at scummvm.org
Sat Jul 2 20:28:59 UTC 2022
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:
08f754bbeb WINTERMUTE: WME3D: Correctly release resources, fixes original code bug
Commit: 08f754bbeb123a89151d83b2278df52010f8abd4
https://github.com/scummvm/scummvm/commit/08f754bbeb123a89151d83b2278df52010f8abd4
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-07-02T22:28:55+02:00
Commit Message:
WINTERMUTE: WME3D: Correctly release resources, fixes original code bug
Changed paths:
engines/wintermute/ad/ad_actor_3dx.cpp
diff --git a/engines/wintermute/ad/ad_actor_3dx.cpp b/engines/wintermute/ad/ad_actor_3dx.cpp
index 3abd89522fe..f302efc747d 100644
--- a/engines/wintermute/ad/ad_actor_3dx.cpp
+++ b/engines/wintermute/ad/ad_actor_3dx.cpp
@@ -1161,10 +1161,8 @@ bool AdActor3DX::loadBuffer(byte *buffer, bool complete) {
AdWaypointGroup *wpt = new AdWaypointGroup(_gameRef);
AdWaypointGroup *cwpt = new AdWaypointGroup(_gameRef);
if (!wpt || !cwpt || !wpt->loadBuffer((char *)params, false)) {
- delete _wptGroup;
- _wptGroup = nullptr;
- delete _currentWptGroup;
- _currentWptGroup = nullptr;
+ delete wpt;
+ delete cwpt;
cmd = PARSERR_GENERIC;
} else {
_wptGroup = wpt;
More information about the Scummvm-git-logs
mailing list