Fix QByteArray memory leak

QByteArray leaked memory when constructed from Python 2 str

Change-Id: I0e2ea21ba1bd32d9519704baa7dd42e5224e9ed3
Reviewed-by: John Cummings <jcummings2@users.sf.net>