id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1202	"Any ""IO Pixbuf"" will cause memory leak."	guest	somebody	"Now every function return ""IO Pixbuf"" will cause memory leak.

I attach a simple demo to recur this issue:

module Main where

import Graphics.UI.Gtk
import Graphics.UI.Gtk.Gdk.Pixbuf
import Control.Monad

main = do
  initGUI

  w <- windowNew

  pb <- pixbufNew ColorspaceRgb False 8 1000 1000

  forM_ [1..100] $ \_ -> do
    pixbufScaleSimple pb 1000 1000 InterpNearest
    return ()

  onDestroy w mainQuit
  widgetShowAll w
  mainGUI

not just pixbufScaleSimple, other function like pixbufNewFromFile, pixbufRotateSimple has same problem.

We should think why Pixbuf's are not GC'd with the normal mechanism.  "	defect	new	normal	0.11.0	general (Gtk+, Glib)	0.11.0		pixbuf	lazycat.manatee@…
