Skip to content

Allow clean exit in boutcore#1662

Merged
ZedThree merged 7 commits intonextfrom
split-up-bout-init-final
Apr 9, 2019
Merged

Allow clean exit in boutcore#1662
ZedThree merged 7 commits intonextfrom
split-up-bout-init-final

Conversation

@dschwoerer
Copy link
Contributor

It's not particularly nice, to duplicating __dealloc__ - but fu.__dealloc__() cannot be called, and simply calling del fu doesn't work ether, as long as there are other references.

atexit should ensure we are called rather late, to finalise. Any remaining references still need to be manually taken care of.

…it-final

 Conflicts:
	tests/integrated/test-boutcore/mms-ddz/runtest
We want to delete cobj ...
This makes sure that they can all be free'd before we call finalise.

Further minor changes such as whitespace.
@dschwoerer dschwoerer changed the title Split up bout init final Allow clean exit in boutcore Apr 3, 2019
@dschwoerer
Copy link
Contributor Author

The pr tests are all failing - however I doubt it is related to this PR ...

@dschwoerer dschwoerer requested a review from ZedThree April 9, 2019 10:12
@ZedThree
Copy link
Member

ZedThree commented Apr 9, 2019

Thanks @dschwoerer, that's made the tests much nicer! valgrind is happier now

@ZedThree ZedThree merged commit 986cd3e into next Apr 9, 2019
@ZedThree ZedThree deleted the split-up-bout-init-final branch April 9, 2019 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants