changeset 13405:851dd370e0fe

[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 <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 06 Mar 2006 19:42:12 +0000
parents c74401cfef23
children 3033597a4059
files src/gtkconv.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}