fix massive memory leak

This commit is contained in:
Albert Cahalan 2004-12-05 07:02:42 +00:00
parent 6725fa2cbd
commit c8d07b8fd7
2 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,9 @@ http://www.newbreedsoftware.com/tuxpaint/
2004.November.26 (0.9.15)
* Sorry about that leak. Many MB per stamp and nobody complained???
Albert Cahalan <albert@users.sf.net>
* Greatly improved stamp outlining (to avoid empty rows or columns
and other artifacts) by using a thick stippled pattern.
Albert Cahalan <albert@users.sf.net>

View file

@ -3296,6 +3296,7 @@ trysat:;
}
}
SDL_UnlockSurface(tmp_surf);
free(work);
}
// This tints a greyscale stamp. Hopefully such stamps remain rare.
@ -3428,6 +3429,7 @@ trysat:;
}
}
SDL_UnlockSurface(tmp_surf);
free(work);
}
//////////////////////////////////////////////////////////////////////