[geos-devel] GEOS Exceptions

Mark Coletti mcoletti at gmail.com
Mon Apr 18 13:10:57 EDT 2005


On 4/18/05, Norman Vine <nhv at cape.com> wrote:
> 
>      catch( geos::GEOSException *e )
>      {
>          CPLError( CE_Failure, CPLE_AppDefined,
>                   "GEOSException: %s",
>                   (char *)ge->toString().c_str() );
> 
>         return NULL;
>     }

Need to free the exception before returning.  (As another reader pointed out.)

      catch( geos::GEOSException *e )
      {
          CPLError( CE_Failure, CPLE_AppDefined,
                   "GEOSException: %s",
                   (char *)ge->toString().c_str() );

         delete e;
 
         return NULL;
     }

-- 
I'm taking reality in small doses to build immunity.



More information about the geos-devel mailing list