[Scummvm-git-logs] scummvm master -> 59f3278bbf92d4ae43e1a316333a46f278e54a6f
aquadran
noreply at scummvm.org
Fri Oct 25 16:01:43 UTC 2024
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:
59f3278bbf Revert "WINTERMUTE: Plug memory leak. CID 1563426"
Commit: 59f3278bbf92d4ae43e1a316333a46f278e54a6f
https://github.com/scummvm/scummvm/commit/59f3278bbf92d4ae43e1a316333a46f278e54a6f
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2024-10-25T18:01:37+02:00
Commit Message:
Revert "WINTERMUTE: Plug memory leak. CID 1563426"
This reverts commit 593aa1e964fd6d9fe28dacb980cd14ef81d4c8c5.
It's placed in wrong place, and it's false positive.
There is no free resource in destructor intentionally.
Changed paths:
engines/wintermute/base/gfx/xbuffer.h
diff --git a/engines/wintermute/base/gfx/xbuffer.h b/engines/wintermute/base/gfx/xbuffer.h
index ae4178a4cc8..486ea2bdd04 100644
--- a/engines/wintermute/base/gfx/xbuffer.h
+++ b/engines/wintermute/base/gfx/xbuffer.h
@@ -36,7 +36,8 @@ private:
public:
DXBuffer() {
- free();
+ _ptr = nullptr;
+ _size = 0;
}
DXBuffer(uint64 size) {
More information about the Scummvm-git-logs
mailing list