<div>Hi,</div><div> </div><div>OGRLinearRing *p = new OGRLinearRing(); </div><div>//that's a runtime error </div><div>delete p;</div><p>I've tried OGRCleanupAll(); but it didn't work.</p><p>What is the proper way to free pointer p,thanks for your help!</p>