From 5ce090b8c732d6261b5d17f48c7fb12db169592b Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 31 Oct 2022 12:30:43 +0300 Subject: [PATCH] fix use-after-free (for some reason only when started with empty settings, quitted) --- radiant/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radiant/main.cpp b/radiant/main.cpp index 894f9ed4..54aec697 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -538,6 +538,7 @@ int main( int argc, char* argv[] ){ Radiant_Shutdown(); + qInstallMessageHandler( nullptr ); // close the log file if any Sys_LogFile( false );