r2270: Fix reference counting problem shown up by Gtk+-2.2.