Skip to content

Commit

Permalink
Merge branch 'branch-6-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Aug 23, 2012
2 parents e632af4 + 5463c8f commit 2f4b50a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions maperror.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ void msWriteErrorImage(mapObj *map, char *filename, int blank)
int nWidthTxt = 0;
outputFormatObj *format = NULL;
char *errormsg = msGetErrorString("; ");
errorObj *error = msGetErrorObj();
fontMetrics *font = NULL;
char *imagepath = NULL, *imageurl = NULL;
labelStyleObj ls;
Expand Down Expand Up @@ -488,6 +489,12 @@ void msWriteErrorImage(mapObj *map, char *filename, int blank)
msSaveImage(NULL,img,filename);
msFreeImage(img);

/* the errors are reported */
while(error && error->code != MS_NOERR) {
error->isreported = MS_TRUE;
error = error->next;
}

if (format->refcount == 0)
msFreeOutputFormat(format);
msFree(errormsg);
Expand Down
1 change: 0 additions & 1 deletion maptemplate.c
Original file line number Diff line number Diff line change
Expand Up @@ -4479,7 +4479,6 @@ void msFreeMapServObj(mapservObj* mapserv)
msFree(mapserv->QueryLayer);
msFree(mapserv->SelectLayer);
msFree(mapserv->QueryFile);
msFree(mapserv->QueryItem);

msFree(mapserv);
}
Expand Down

0 comments on commit 2f4b50a

Please sign in to comment.