fix fd leak on pattern loading

-Yosh
This commit is contained in:
Manish Singh 2000-12-26 19:11:10 +00:00
parent b14736d980
commit 1f410de1aa
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Tue Dec 26 11:10:23 PST 2000 Manish Singh <yosh@gimp.org>
* app/patterns.c: fix fd leak on loading
Sun Dec 24 23:18:32 PST 2000 Manish Singh <yosh@gimp.org>
* Made 1.2.0 release

View File

@ -298,6 +298,8 @@ load_pattern (gchar *filename)
pattern = pattern_load_real (fd, filename, FALSE);
close (fd);
if (!pattern)
return;