#!/usr/bin/python

from gi.repository import Gtk

win = Gtk.Window()
img = Gtk.Image()
win.add(img)
win.show_all()

img.clear()
print "done clear1"

win.destroy()

print "cause segf"
img.clear()
print "done clear2"

