Subject: | fork and invalid free() in XS_Wx__Event_DESTROY |
I tried to use fork() in a button event handler.
As soon as the child exits, I get "pointer being freed was not allocated"
Valgrind reported the invalid free() to be in XS_Wx__Event_DESTROY.
The following workaround in the child code avoids the error:
*Wx::Event::DESTROY = sub {};
How is this supposed to work? Is this something that can be fixed in wxPerl code?