diff --git a/utils/tex2rtf/src/tex2rtf.cpp b/utils/tex2rtf/src/tex2rtf.cpp index 14a8974018..86074e2fd0 100644 --- a/utils/tex2rtf/src/tex2rtf.cpp +++ b/utils/tex2rtf/src/tex2rtf.cpp @@ -419,6 +419,7 @@ bool MyApp::OnInit() #ifdef NO_GUI return true; #else + OnExit(); // Do cleanup since OnExit won't be called now return false; #endif }