On Sat, 01 Nov 2014 17:07:33 +0100, Mike Wey wrote:
The problem in this case is that getFromDrawable already sets the
reference count as a convenience. So when GtkD wraps the object and adds
an reference the object, it is kept in memory indefinably because GtkD
now holds two references.
Right, but may a ask you (since I think you're one of the developer of the gtkD ) if there is a problem to create a destructor in Pixbuf.d module like this:
~this(){
this.gdkPixbuf = null;
this.unref();
}
Because I'm using that and it worked fine, but I don't know what would be the consequences in the project.
PS: Sorry my english.
Matheus.