fixing issue 312

basically i change this CompressionType type to this
CompressionType * type = new CompressionType();
to avoid the error of uninitialized