mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 20:06:43 +00:00
frii memory leak fix
This commit is contained in:
parent
00fc334764
commit
b06085915d
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,7 @@ void FileExplorer(char *path){
|
||||||
res = 0;
|
res = 0;
|
||||||
|
|
||||||
res = newMenu(&entries, res, 60, 42, ENABLEB | ENABLEPAGECOUNT, (int)fileVec.count);
|
res = newMenu(&entries, res, 60, 42, ENABLEB | ENABLEPAGECOUNT, (int)fileVec.count);
|
||||||
|
vecFree(entries);
|
||||||
|
|
||||||
char *oldPath = storedPath;
|
char *oldPath = storedPath;
|
||||||
|
|
||||||
|
@ -125,6 +126,7 @@ void FileExplorer(char *path){
|
||||||
else if (res < ARR_LEN(topEntries)) {
|
else if (res < ARR_LEN(topEntries)) {
|
||||||
if (!strcmp(storedPath, path)){
|
if (!strcmp(storedPath, path)){
|
||||||
clearFileVector(&fileVec);
|
clearFileVector(&fileVec);
|
||||||
|
free(storedPath);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue