#!/urb/bin/env python
# -*- coding: utf-8 -*-

import gc
from weakref import ref

from gi.repository import Gtk

def gen_store():
    st = Gtk.ListStore(*[str]*5)
    for r in xrange(10000):
        st.append(['Aaaaaaa', 'Bbbbbbb', 'Ccccccc', 'Ddddddd', 'Eeeeeee'])
    return st

def boo():
    for i in range(10):
        raw_input('Press <Enter> ...')
        store = ref(gen_store())
        gc.collect()
        print store()


if __name__ == '__main__':
    boo()
