lib/shoes/swt/common/remove.rb in shoes-swt-4.0.0.pre10 vs lib/shoes/swt/common/remove.rb in shoes-swt-4.0.0.pre11
- old
+ new
@@ -10,10 +10,10 @@
dispose_held_resources
dispose
end
def dispose_held_resources
- @color_factory.dispose unless @color_factory.nil?
+ @color_factory&.dispose
end
# Classes should override to dispose of any Swt resources they create
def dispose
end