diff options
Diffstat (limited to 'engines/parallaction/walk.cpp')
-rw-r--r-- | engines/parallaction/walk.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/parallaction/walk.cpp b/engines/parallaction/walk.cpp index 9a306b4f4e..281f2388e4 100644 --- a/engines/parallaction/walk.cpp +++ b/engines/parallaction/walk.cpp @@ -422,8 +422,10 @@ void jobWalk(void *parm, Job *j) { void Parallaction::setPath(PathBuffer *buffer) { - if (_pathBuffer) + if (_pathBuffer) { + _pathBuffer->free(); delete _pathBuffer; + } _pathBuffer = buffer; } |