From: notaz Date: Sat, 27 Dec 2025 00:51:56 +0000 (+0200) Subject: misc: avoid saving some heap garbage X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3960ac0404d5d5b0cde44868c25b7d517ea05ab3;p=pcsx_rearmed.git misc: avoid saving some heap garbage --- diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index e0445e78..33a4272e 100644 --- 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;