Summary: | Once KMM opened, by force of habit, I opened CSV import. When the plugin opened, I closed it immediately and KMM crashed. | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | allan <agander93> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | SVN | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
allan
2011-01-02 18:43:44 UTC
In C++, it is always safe to delete a null pointer. The crash would be caused by something else, like trying to delete memory that had already been deleted. (In reply to comment #1) > In C++, it is always safe to delete a null pointer. The crash would be caused > by something else, like trying to delete memory that had already been deleted. Ah, thanks, Fernando. I was just about to look more closely at what was going on. It did seem a bit odd to need to do that. Looks like you get caught by the Qt object hierarchy which takes care of deleting objects. If you setup a correct parent/children relationship you should not have to worry about the destruction of the widgets. This is fix as far as I remember. (In reply to comment #4) > This is fix as far as I remember. I think so, too, but should have specifically documented it. The code is now much changed. |