notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f06cf4a
)
misc: avoid saving some heap garbage
author
notaz
<notasas@gmail.com>
Sat, 27 Dec 2025 00:51:56 +0000
(
02:51
+0200)
committer
notaz
<notasas@gmail.com>
Sat, 27 Dec 2025 00:51:56 +0000
(
02:51
+0200)
libpcsxcore/misc.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/misc.c
b/libpcsxcore/misc.c
index
e0445e7
..
33a4272
100644
(file)
--- a/
libpcsxcore/misc.c
+++ b/
libpcsxcore/misc.c
@@
-767,6
+767,7
@@
int SaveState(const char *file) {
gpufP = (GPUFreeze_t *)malloc(sizeof(GPUFreeze_t));
if (gpufP == NULL) goto cleanup;
gpufP->ulFreezeVersion = 1;
+ memset(gpufP->ulControl, 0, sizeof(gpufP->ulControl));
GPU_freeze(1, gpufP);
SaveFuncs.write(f, gpufP, sizeof(GPUFreeze_t));
free(gpufP); gpufP = NULL;