comparison src/w32fns.c @ 95481:4390d64d3328

Make "xfree (NULL)" a no-op; remove useless if-before-xfree. * src/alloc.c (xfree): Return right away for a NULL arg. * src/lread.c (nosuffix): Remove now-useless if-before-xfree tests. * src/gtkutil.c (xg_gtk_scroll_destroy): Likewise. * src/mac.c (create_apple_event_from_event_ref): Likewise. (create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise. * src/doprnt.c (doprnt1): Likewise. * src/frame.c (frame): Likewise. * src/keyboard.c (wipe_kboard): Likewise. * src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap): (init_font_name_table, mac_unload_font, x_delete_display): Likewise. * src/term.c (tty_default_color_capabilities, maybe_fatal) (delete_tty): Likewise. * src/w16select.c (string): Likewise. * src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise. * src/w32bdf.c (w32_free_bdf_font): Likewise. * src/w32fns.c (w32_unload_font): Likewise. * src/w32font.c (w32font_close): Likewise. * src/window.c (size_window): Likewise. * src/xselect.c (receive_incremental_selection): Likewise. * src/xterm.c (x_free_frame_resources, x_delete_display): Likewise. * src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise. * src/w32.c (stat): Likewise.
author Jim Meyering <jim@meyering.net>
date Mon, 02 Jun 2008 06:09:17 +0000
parents b2d851c43596
children 76261fd18708
comparison
equal deleted inserted replaced
95480:1c16540a2329 95481:4390d64d3328
4953 struct w32_display_info *dpyinfo; 4953 struct w32_display_info *dpyinfo;
4954 XFontStruct * font; 4954 XFontStruct * font;
4955 { 4955 {
4956 if (font) 4956 if (font)
4957 { 4957 {
4958 if (font->per_char) xfree (font->per_char); 4958 xfree (font->per_char);
4959 if (font->bdf) w32_free_bdf_font (font->bdf); 4959 if (font->bdf) w32_free_bdf_font (font->bdf);
4960 4960
4961 if (font->hfont) DeleteObject (font->hfont); 4961 if (font->hfont) DeleteObject (font->hfont);
4962 xfree (font); 4962 xfree (font);
4963 } 4963 }