Ignore:
Timestamp:
Jun 27, 2014, 1:14:39 AM (7 years ago)
Author:
djay
Message:

Remove memory leaks from ZOO-Kernel. Fix issue #99.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_ms.c

    r475 r490  
    129129  if(strncasecmp(rformat->value,"image/tiff",10)==0)
    130130    proto=2;
    131   if(protoMap!=NULL)
     131  if(protoMap!=NULL){
    132132    if(strncasecmp(protoMap->value,"WMS",3)==0)
    133133      proto=0;
    134     else if(strncasecmp(protoMap->value,"WFS",3)==0)
    135       proto=1;
    136     else
    137       proto=2;
    138  
     134    else{
     135      if(strncasecmp(protoMap->value,"WFS",3)==0)
     136        proto=1;
     137      else
     138        proto=2;
     139    }
     140  }
    139141  char *protoVersion=options[proto][1];
    140142  if(proto==1){
     
    278280      msLoadProjectionStringEPSG(&myLayer->projection,msSrs->value);
    279281      char tmpSrs[128];
    280       sprintf(tmpSrs,"%s EPSG:4326 EPSG:900913",msSrs);
     282      sprintf(tmpSrs,"%s EPSG:4326 EPSG:900913",msSrs->value);
    281283      msInsertHashTable(&(m->web.metadata),"ows_srs",tmpSrs);
    282284      msInsertHashTable(&(myLayer->metadata),"ows_srs",tmpSrs);
     
    574576      msInsertHashTable(&(myLayer->metadata), "ows_srs", "EPSG:4326 EPSG:900913");
    575577    }
    576 
    577     map* crs=getMap(output->content,"crs");
    578     map* isGeo=getMap(output->content,"crs_isGeographic");
    579578
    580579    OGREnvelope oExt;
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png