fix memory leak

SVN revision: 4300
This commit is contained in:
Tom Gilbert 2001-03-03 22:32:16 +00:00
parent 15263ed166
commit 4c3d00f262
1 changed files with 1 additions and 0 deletions

View File

@ -1352,6 +1352,7 @@ __imlib_SaveImage(ImlibImage * im, const char *file,
/* call the saver */
e = l->save(im, progress, progress_granularity);
/* set the filename back to the laoder image filename */
free(im->file);
im->file = pfile;
/* if there's an error return and the save faile (e = 0) figure it out */