98b50fd942
The destroy vfunc might be called during object finalization, and we can't call any JS from a GC finalizer, so we use a signal connection instead, as that is removed by GObject the first time the object is disposed. https://bugzilla.gnome.org/show_bug.cgi?id=719730