Fix some memory leaks with WrappedText and LoadArrayByNameAsVec3s (#4144)

* avoid memory leaks with WrappedText

* avoid memory leak with LoadArrayByNameAsVec3s
This commit is contained in:
Archez
2024-05-09 21:39:13 -04:00
committed by GitHub
parent cbeec006ec
commit 3f67fed073
5 changed files with 14 additions and 11 deletions

View File

@@ -2307,10 +2307,12 @@ void Player_DrawPause(PlayState* play, u8* segment, SkelAnime* skelAnime, Vec3f*
}
srcTable = ResourceMgr_LoadArrayByNameAsVec3s(srcTable);
Vec3s* ogSrcTable = srcTable;
destTable = skelAnime->jointTable;
for (i = 0; i < skelAnime->limbCount; i++) {
*destTable++ = *srcTable++;
}
free(ogSrcTable);
}