(QNX) Implement destroy function correctly