Ticket #1285 (new defect)

Opened 16 months ago

widgetQueueDraw leaking memory on Windows

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.13.0
Component: general (Gtk+, Glib) Version: 0.12.4
Keywords: leak Cc:

Description

On Windows (7, 32bits and 64bits) this simple program will leak memory very quickly, more than 1Mb/s.

import Graphics.UI.Gtk

main :: IO ()
main = do
    initGUI
    window <- windowNew
    onDestroy window mainQuit
    onExpose window (\_ -> widgetQueueDraw window >> return True)
    widgetShowAll window
    mainGUI

Thinking it was a bug in my code, I asked on Stackoverflow, and it seems like the issue doesn't happen on Linux.

http://stackoverflow.com/questions/16178219/why-is-this-minimal-gtk2hs-program-leaking-memory

Note: See TracTickets for help on using tickets.