gtk_widget_get_snapshot



Hello,

gtk_widget_get_snapshot seems to leak some memory (or I'm doing it wrong).

I tested with:

for(;;)
{
    GdkPixmap* pix = gtk_widget_get_snapshot(wdg, NULL);
    g_object_unref(pix);
}

The memory grows forever! I'm missing something?

Thanks.

-- 
http://oproj.tuxfamily.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]