On Mon, 03 Nov 2014 19:38:05 GMT, Diez wrote:

Any other suggestions?

Well, I tried the sample code bellow and I didn't see any memory leak (I'm calling drawImg() every 300 ms):

void drawImg(Context cr){    
    static bool change = true;
            
    if(!(pixbuf is null)){
        delete pixbuf;
    }          
    
    auto fimg = visible ? "teste.png" : "teste2.png";
            
    pixbuf = new Pixbuf(fimg);
    cr.setSourcePixbuf(pixbuf, 0, 0);
    cr.paint();
    
    change = !change;
}

Remembering that in my gtkD Pixbuf.d source I wrote a dtor:

~this(){        
    this.gdkPixbuf = null;
    this.unref();
}

Matheus.