Fix crash when closing a document with visible infobars
commita26bdd628f7a7d6a5937195083b7829be09b1a81
authorColomban Wendling <ban@herbesfolles.org>
Thu, 7 Aug 2014 13:14:22 +0000 (7 15:14 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Thu, 7 Aug 2014 13:14:22 +0000 (7 15:14 +0200)
tree21800101cfd41d15c81e6ded2ef8cada73e21cca
parent8341228ffa5a69970e85cddc7adb6d1f49f247d9
Fix crash when closing a document with visible infobars

Apparently the ::unrealize symbol is sent too late, after we destroyed
the widget and freed the GeanyDocument, and some signals like
::focus-in-event can still be fired on the widget after that.

So, properly use the ::destroy signal that is supposed to be fired when
others should release references to that instance.
src/document.c