fix resource leak
This commit is contained in:
parent
aa0b0eb0d7
commit
39ca226b86
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user