[sys] Ensure dstrings don't get double-freed

Never nice.
This commit is contained in:
Bill Currie 2023-09-15 01:15:10 +09:00
parent ea375a4e2f
commit 4eaaf28030
1 changed files with 2 additions and 0 deletions

View File

@ -1254,8 +1254,10 @@ Sys_Shutdown (void)
}
if (sys_print_msg) {
dstring_delete (sys_print_msg);
sys_print_msg = 0;
}
if (sys_debuglog_data) {
dstring_delete (sys_debuglog_data);
sys_debuglog_data = 0;
}
}