mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
QDENGINE: Fix newp[]/delete mismatch. PVS-Studio V611
This commit is contained in:
parent
d4c438d5b6
commit
c43263b3a9
@ -848,7 +848,7 @@ char *grDispatcher::temp_buffer(int size) {
|
||||
if (size <= 0) size = 1;
|
||||
|
||||
if (size > _temp_buffer_size) {
|
||||
delete _temp_buffer;
|
||||
delete[] _temp_buffer;
|
||||
_temp_buffer = new char[size];
|
||||
_temp_buffer_size = size;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user