Ignore closure callbacks when Python is not initialized16f8f687eae0caa1e4059fd62bd1f9d4c7f655f7
commit16f8f687eae0caa1e4059fd62bd1f9d4c7f655f7
authorSimon Feltman <sfeltman@src.gnome.org>
Thu, 28 Aug 2014 06:55:06 +0000 (27 23:55 -0700)
committerSimon Feltman <sfeltman@src.gnome.org>
Thu, 28 Aug 2014 06:55:06 +0000 (27 23:55 -0700)
treec5e2525036463375738e95ab4b03d185ee513d59
parent27a14679dce33f64bbb5d77677eba83849f168ff
Ignore closure callbacks when Python is not initialized

Add an immediate return in ffi closures if Python is not initialized.
This fixes rare events when which lead to a segfault when a process
is exiting.

https://bugzilla.gnome.org/show_bug.cgi?id=722562
gi/pygi-closure.c