Seems like wxWidgets frees these items itself.