GNOME Bugzilla – Bug 680812
Allow None for output parameter marshaling on overridden methods
Last modified: 2012-07-30 10:53:20 UTC
Crash found trying to implement the Gtk TreeModel interface when overriding the do_get_iter method (http://developer.gnome.org/gtk/2.24/GtkTreeModel.html#gtk-tree-model-get-iter) The ability to return (False, None) is needed. The marsheling code correctly translates None into NULL. However, it then tries to do a memcpy with this later on. from gi.repository import GObject, Gtk class TreeModel(GObject.GObject, Gtk.TreeModel): def do_get_iter(self, iter): return (False, None) TreeModel().get_iter_first()
Created attachment 219867 [details] [review] Added Py_None check before attempting memcpy
Thanks! Committed with a test case and tab fixes.