[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

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;
}
}