- Timestamp:
- Jan 15, 2019, 1:21:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.c
r894 r895 163 163 }else{ 164 164 if(mimeType!=NULL){ 165 elements *tmp=dupElements(cur); 166 tmp->name=zStrdup("download_link"); 167 tmp->content=createMap("Title",_("Download link")); 168 addToMap(tmp->content,"Abstract",_("The download link")); 169 addToMap(tmp->defaults->content,"useMapserver","false"); 170 if(tmp->supported!=NULL){ 171 freeIOType(&tmp->supported); 172 free(tmp->supported); 173 tmp->supported=NULL; 174 } 165 elements *tmp=dupElements(cur); 166 tmp->name=zStrdup("download_link"); 167 tmp->content=createMap("Title",_("Download link")); 168 addToMap(tmp->content,"Abstract",_("The download link")); 169 addToMap(tmp->defaults->content,"useMapserver","false"); 170 if(tmp->supported!=NULL){ 171 freeIOType(&tmp->supported); 172 free(tmp->supported); 173 tmp->supported=NULL; 174 } 175 addToElements(&cur->child,tmp); 176 free(cur->format); 177 cur->format=NULL; 178 if(cur->defaults!=NULL){ 179 freeIOType(&cur->defaults); 180 free(cur->defaults); 181 cur->defaults=NULL; 182 } 183 if(cur->supported!=NULL){ 184 freeIOType(&cur->supported); 185 free(cur->supported); 186 cur->supported=NULL; 187 } 188 freeElements(&tmp); 189 free(tmp); 175 190 } 176 191 }
Note: See TracChangeset
for help on using the changeset viewer.