summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tktext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tktext.rb b/lib/tktext.rb
index 47e11f2c85..ccd70a20a7 100644
--- a/lib/tktext.rb
+++ b/lib/tktext.rb
@@ -47,7 +47,7 @@ class TkText<TkTextWin
end
def destroy
- for t in @tags
+ @tags.each_value do |t|
t.destroy
end
super