From 2ef5594e0e67942514f85e54e1a08ce768814477 Mon Sep 17 00:00:00 2001 From: elliottcable Date: Thu, 5 Mar 2009 22:40:10 -0900 Subject: [PATCH] Deallocate all Terminals on finalization --- lib/nfoiled.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nfoiled.rb b/lib/nfoiled.rb index 0fd39e0..9a22eb7 100644 --- a/lib/nfoiled.rb +++ b/lib/nfoiled.rb @@ -38,6 +38,7 @@ module Nfoiled def finalize! self.initialized = false ::Ncurses.endwin + Terminal.terminals.each {|t| t.destroy! } end ## -- 2.11.4.GIT