fix some smol leaks
This commit is contained in:
1 parent
c8f6878c26
commit
52c6a52a2f
2 files changed
+8
-1
No files matched your search
+6
-1
@@ -209,13 +209,18 @@ void D_SetupProtocol(void)
|
||||
if (result)
|
||||
{
|
||||
if (strcmp(buffer, "no") == 0)
|
||||
return;
|
||||
{
|
||||
fclose(fp);
|
||||
return;
|
||||
}
|
||||
else if (strcmp(buffer, exe_path) != 0)
|
||||
{
|
||||
// overwrite
|
||||
fclose(fp);
|
||||
fp = fopen(protocolfile, "w");
|
||||
RegisterProtocols(exe_path);
|
||||
fprintf(fp, "%s", exe_path);
|
||||
fclose(fp);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8966,6 +8966,8 @@ static void M_ChooseTimeAttack(INT32 choice)
|
||||
G_RecordDemo(nameofdemo);
|
||||
|
||||
G_DeferedInitNew(false, G_BuildMapName(cv_nextmap.value), (UINT8)(cv_chooseskin.value-1), 0, false);
|
||||
|
||||
free(gpath);
|
||||
}
|
||||
|
||||
static void M_HandleStaffReplay(INT32 choice)
|
||||
|
||||
Reference in new issue
Block a user