Changeset 11678

Show
Ignore:
Timestamp:
06/21/07 00:25:20 (1 year ago)
Author:
hobu
Message:

attempt to fix #1680 by OSRReference()'ing the returned reference

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/swig/include/ogr.i

    r11672 r11678  
    119119#include "cpl_port.h" 
    120120#include "cpl_string.h" 
     121#include "ogr_srs_api.h" 
    121122 
    122123typedef void OSRSpatialReferenceShadow; 
     
    548549  } 
    549550   
     551 
    550552  OSRSpatialReferenceShadow *GetSpatialRef() { 
    551     return (OSRSpatialReferenceShadow*) OGR_L_GetSpatialRef(self); 
     553    OGRSpatialReferenceH ref =  OGR_L_GetSpatialRef(self); 
     554    OSRReference(ref); 
     555    return (OSRSpatialReferenceShadow*) ref; 
    552556  } 
    553557