fix resource leak

This commit is contained in:
hoijui 2017-12-17 10:43:16 +01:00
parent aa0b0eb0d7
commit 39ca226b86

View File

@ -220,6 +220,7 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
if (fwrite(cstr, 1, wbytes, fp) != wbytes) { if (fwrite(cstr, 1, wbytes, fp) != wbytes) {
run_dialog_message(gtk_widget_get_toplevel(view), run_dialog_message(gtk_widget_get_toplevel(view),
GTK_MESSAGE_ERROR, _("Can't write file")); GTK_MESSAGE_ERROR, _("Can't write file"));
fclose(fp);
return -1; return -1;
} }