mirror of
https://github.com/BernardoGiordano/Checkpoint
synced 2024-11-28 19:40:18 +00:00
enable lto and fix memory leak
This commit is contained in:
parent
65a09c497e
commit
92a3d49f72
3 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,7 @@ ICON_FLAGS := nosavebackups,visible
|
|||
#---------------------------------------------------------------------------------
|
||||
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft
|
||||
|
||||
CFLAGS := -g -Wall -Wextra -Wno-psabi -O2 -mword-relocations \
|
||||
CFLAGS := -g -Wall -Wextra -Wno-psabi -O2 -mword-relocations -flto \
|
||||
-fomit-frame-pointer -ffunction-sections \
|
||||
$(ARCH) \
|
||||
-DVERSION_MAJOR=${VERSION_MAJOR} \
|
||||
|
|
|
@ -960,7 +960,7 @@ static bool scanCard(void)
|
|||
isScanning = true;
|
||||
}
|
||||
|
||||
bool ret;
|
||||
bool ret = false;
|
||||
Result res = 0;
|
||||
u32 count = 0;
|
||||
FS_CardType cardType;
|
||||
|
|
|
@ -218,6 +218,7 @@ void loadTitles(void)
|
|||
Result res = fsOpenSaveDataIterator(&iterator, FsSaveDataSpaceId_NandUser);
|
||||
if (R_FAILED(res))
|
||||
{
|
||||
free(nsacd);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue