[kmymoney4] [Bug 370227] Crash on exit

RJVB bugzilla_noreply at kde.org
Sun Oct 30 17:19:47 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=370227

--- Comment #8 from RJVB <rjvbertin at gmail.com> ---
Do those supposed still-open dialogs have a QObject-based proxy/wrapper class?

One source of UI-related crashes on OS X is deleting object instances
representing UI elements that still have events pending, which can include
events due to closing the UI element. In a nutshell, that's at least partly due
to a mismatch between ObjC's memory management model (which uses refcounting;
[foo release] isn't usually immediate) and C++'s model where `delete foo` has
immediate effect.
Qt provides the QObject::deleteLater() method for that.

Note that deleteLater() only works on pointers, but the side-effects of
immediate free can also arise when a non-pointer instance goes out of scope; in
that case code has to be rewritten to use a pointer...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list