Commit 4eeb8759 authored byBrowse files
app/gimpbrush.c app/gimpbrushpipe.c app/pattern_header.h fixed #8150.
2000-10-01 Michael Natterer <firstname.lastname@example.org> * app/gimpbrush.c * app/gimpbrushpipe.c * app/pattern_header.h * app/patterns.c: (Hopefully) fixed #8150. - If something goes wrong during loading, free the resp. object immediately and close it's FD. - When destroying, check each pointer before freeing it. - Never use if (!gimp_brush_load_brush() || !pattern_load()) but check the return values of both calls separately. (the original code tried to free an already destroyed temp_buf). - stuff like below (s/sz_PatternHeader/sizeof(PatternHeader)/g etc.)
Showing with 206 additions and 114 deletions