mismatched delete/delete[]

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>