[Gdal-dev] OCI connection close !!!

Frank Warmerdam fwarmerdam at gmail.com
Thu Aug 18 10:46:29 EDT 2005


On 8/18/05, Ibrahim HIDIR <hipoxi at gmail.com> wrote:
> hi again, i think i solved connection problem, i justt add
...
>     CPLFree( papoSRS );
>     CPLFree( panSRID );
> 
>     delete poSession;   /*  new line  */
> }
> -------------------------------------
> 
> in ogrocidatasource.cpp  file, when i destroy the connection it ends
> the session :)

Ibrahim,

I have committed a variation on the change looking like:

    CPLFree( papoSRS );
    CPLFree( panSRID );

    if( poSession != NULL )
        delete poSession;
}

There are a few early failure cases where poSession might
still be NULL.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list