Do not do any python calls when GObjects are destroyed after the python interpreter has been finalized
Do not do any python calls when GObjects are destroyed after the python interpreter has been finalized

This happens when pygobject_data_free () function is called after the python
interpreter shuts down, we can't do python calls after that.

Benzea did the findings because of a bug in Sugar, and commented in this
SugarLabs ticket: http://bugs.sugarlabs.org/ticket/3670

https://bugzilla.gnome.org/show_bug.cgi?id=678046

Signed-off-by: Benjamin Berg <572dd672a0f699306c659055682b4b394d5e495b@sugarlabs.org>
Signed-off-by: Martin Pitt <24dac832a49a9058ac2d05f60f9756e2e4783785@gnome.org>

GNOME/pygobject,MathieuDuponchelle/pygobject,pexip/pygobject,davibe/pygobject,davibe/pygobject,davidmalcolm/pygobject,thiblahute/pygobject,thiblahute/pygobject,pexip/pygobject,sfeltman/pygobject,thiblahute/pygobject,GNOME/pygobject,MathieuDuponchelle/pygobject,davibe/pygobject,sfeltman/pygobject,davidmalcolm/pygobject,davidmalcolm/pygobject,sfeltman/pygobject,MathieuDuponchelle/pygobject,pexip/pygobject,GNOME/pygobject,davibe/pygobject