fix massive memory leak
This commit is contained in:
parent
6725fa2cbd
commit
c8d07b8fd7
2 changed files with 5 additions and 0 deletions
|
|
@ -8,6 +8,9 @@ http://www.newbreedsoftware.com/tuxpaint/
|
||||||
|
|
||||||
|
|
||||||
2004.November.26 (0.9.15)
|
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
|
* Greatly improved stamp outlining (to avoid empty rows or columns
|
||||||
and other artifacts) by using a thick stippled pattern.
|
and other artifacts) by using a thick stippled pattern.
|
||||||
Albert Cahalan <albert@users.sf.net>
|
Albert Cahalan <albert@users.sf.net>
|
||||||
|
|
|
||||||
|
|
@ -3296,6 +3296,7 @@ trysat:;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SDL_UnlockSurface(tmp_surf);
|
SDL_UnlockSurface(tmp_surf);
|
||||||
|
free(work);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This tints a greyscale stamp. Hopefully such stamps remain rare.
|
// This tints a greyscale stamp. Hopefully such stamps remain rare.
|
||||||
|
|
@ -3428,6 +3429,7 @@ trysat:;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SDL_UnlockSurface(tmp_surf);
|
SDL_UnlockSurface(tmp_surf);
|
||||||
|
free(work);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue