Fix compile under visual studio

You can't declare variable size arrays like this under visual studio. Not sure if you want to do it like this, or say QScopedPointer.