Qnx: Fix a memory leak

Change-Id: I4caadbf4675fd4fbb0cbb6a1d4fa711c3520a440
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>