Fixed a memory leak and a warning.
Fixed a memory leak and a warning.

JacekNaruniec/LiveScan3D,MarekKowalski/LiveScan3D,MarekKowalski/LiveScan3D,MarekKowalski/LiveScan3D,JacekNaruniec/LiveScan3D,JacekNaruniec/LiveScan3D