[Kde-bindings] qtruby w.visible memory leak/bug with Ruby 1.9
    Davor Ocelic 
    docelic at spinlocksolutions.com
       
    Mon Dec  7 17:58:11 UTC 2009
    
    
  
Hello folks,
Recently I've discovered that calling
  widget.visible()
causes a memory leak on Ruby1.9.
(Using .isVisible works correctly though).
On Ruby 1.8 both methods works alright.
Here's a quick test case:
require 'Qt4'
a = Qt::Application.new(ARGV)
hello = Qt::PushButton.new("Hello World!")
hello.resize(100, 30)
hello.show
while 1
  hello.visible
end
a.exec
Run it under ruby1.9 and watch resident memory usage in top
growing.
Best regards,
Davor Ocelic
Spinlock Solutions
    
    
More information about the Kde-bindings
mailing list