# HG changeset patch # User Stu Tomlinson # Date 1141674132 0 # Node ID 851dd370e0fea623f1f1ac3e71bac209150a723f # Parent c74401cfef23517470ecde3d6194fd6e41d1148c [gaim-migrate @ 15780] Close the file handle if we can't find the data we wanted to write to it. Fixes CID 48 committer: Tailor Script diff -r c74401cfef23 -r 851dd370e0fe src/gtkconv.c --- a/src/gtkconv.c Mon Mar 06 19:31:58 2006 +0000 +++ b/src/gtkconv.c Mon Mar 06 19:42:12 2006 +0000 @@ -2383,6 +2383,7 @@ if ((len <= 0) || (data == NULL)) { gaim_notify_error(gtkconv, NULL, _("Unable to save icon file to disk."), NULL); + fclose(fp); return; }