Revision: 7322 Author: deton.kih Date: Wed Sep 21 15:20:32 2011 Log: * uim/uim-custom.c - (uim_custom_save_group): Fix SEGV on Apply button of uim-pref-gtk.
http://code.google.com/p/uim/source/detail?r=7322 Modified: /trunk/uim/uim-custom.c ======================================= --- /trunk/uim/uim-custom.c Sun Sep 18 23:31:49 2011 +++ /trunk/uim/uim-custom.c Wed Sep 21 15:20:32 2011 @@ -1307,8 +1307,11 @@ } uim_custom_symbol_list_free(custom_syms); - if (fclose(file) < 0) + if (fclose(file) < 0) { + file = NULL; goto error; + } + file = NULL; /* rename prepared temporary file to proper name */ file_path = custom_file_path(group, 0);
