Commit 44aa7f2c88 added calls to destroy the renderer and the window, but forgot to remove the call to screen_destroy() they were supposed to replace.
44aa7f2c88