gnucash maint: Bug 797481 - crash on close of unsaved tabs by pressing [X]
John Ralls
jralls at code.gnucash.org
Fri Jan 3 16:18:50 EST 2020
Updated via https://github.com/Gnucash/gnucash/commit/b5fdcfcb (commit)
from https://github.com/Gnucash/gnucash/commit/d409d009 (commit)
commit b5fdcfcb5b31a639d82cc79920ecf830c33ec450
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Jan 3 13:13:55 2020 -0800
Bug 797481 - crash on close of unsaved tabs by pressing [X]
Use g_object_weak_ref() to null GncItemEdit::sheet to prevent
a use-after-free crash.
Note that this is a band-aid fix. To fix correctly GncItemEdit and probably
most of the rest of the register must be rewritten with modern GObject
macros and resource management.
Summary of changes:
.../register/register-gnome/gnucash-item-edit.c | 40 ++++++++++++++++++++--
1 file changed, 38 insertions(+), 2 deletions(-)
More information about the gnucash-patches
mailing list