Replace GEOS function calls by QgsGeometry class methods

OK, I have changed it, and a possible memory leak below
thanks!