[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    [Kde-bindings] qtruby w.visible memory leak/bug with Ruby 1.9
From:       Davor Ocelic <docelic () spinlocksolutions ! com>
Date:       2009-12-07 17:58:11
Message-ID: 20091207185811.62ab2d7e () sl1 ! spinlock ! hr
[Download RAW message or body]


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
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic