Closed gnunn1 closed 7 years ago
I tried changing the scope(exit)
to a try...finally and it didn't make any difference.
I've changed unref, to properly removing the toggle reference. This should stop GTK from trying to call the toggle callback in the cases where that would no longer be possible.
I can no longer reproduce the issue with this change.
Thanks @MikeWey that does indeed work fine. Any chance of getting a 3.4.1 release with this change included?
Done.
Thanks!
I use the following style of code in Terminix when showing dialogs where a scope(exit) is used tod estroy the dialog:
This worked fine in 3.3.0 but in the new 3.4.0 version it seems to be generating an assertion failure in GObject:
It looks to be caused by the unref added in ObjectG.d from this commit, if I comment that out I do not get the assertion failure any longer:
https://github.com/gtkd-developers/GtkD/commit/c62220514133140bfde723fd6d17a46790232d09
That commit was to fix a memory leak I reported in #165.