Skip to content

Nullify the rDescr pointer after deleting the heap-allocated FFaResultDescription object#43

Merged
kmokstad merged 1 commit intomainfrom
gui-issue-125
Feb 3, 2026
Merged

Nullify the rDescr pointer after deleting the heap-allocated FFaResultDescription object#43
kmokstad merged 1 commit intomainfrom
gui-issue-125

Conversation

@kmokstad
Copy link

@kmokstad kmokstad commented Feb 3, 2026

This fixes openfedem/fedem-gui#125 when consumed by that repository.

The problem occurred when a beam diagram curve was plotted the second time. The heap-allocated FFaDescription objects are the reallocated but the pointers were not nullified after the deallocation. They were therefore not allocated again and instead the heap-memory that was deallocated was referenced again creating all kind of problems.

deleting the heap-allocated FFaResultDescription object.
This is done in the new method FFpCurve::resizeReader().
@kmokstad kmokstad merged commit 8e39426 into main Feb 3, 2026
1 check passed
@kmokstad kmokstad deleted the gui-issue-125 branch February 3, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

R8.1.2.7 - GUI crashes when Beam Diagram is plotted / time input field is changed

1 participant