comparison src/nsfont.m @ 103624:3e06f0e66062

Remove useless if-before-xfree tests. * nsfont.m (nsfont_close): Remove useless test. * term.c (delete_tty): Likewise. * w32.c (system_process_attributes): Likewise. * w32font.c (w32font_close): Likewise. * xfaces.c (x_free_gc): Likewise. * xselect.c (buffer): Likewise.
author Jim Meyering <jim@meyering.net>
date Mon, 29 Jun 2009 05:28:54 +0000
parents 3c179a4d2b8a
children 1e7171d5fd37
comparison
equal deleted inserted replaced
103623:e5da8db417c0 103624:3e06f0e66062
866 if (!font_info) 866 if (!font_info)
867 return; 867 return;
868 868
869 for (i =0; i<0x100; i++) 869 for (i =0; i<0x100; i++)
870 { 870 {
871 if (font_info->glyphs[i]) 871 xfree (font_info->glyphs[i]);
872 xfree (font_info->glyphs[i]); 872 xfree (font_info->metrics[i]);
873 if (font_info->metrics[i])
874 xfree (font_info->metrics[i]);
875 } 873 }
876 [font_info->nsfont release]; 874 [font_info->nsfont release];
877 #ifdef NS_IMPL_COCOA 875 #ifdef NS_IMPL_COCOA
878 CGFontRelease (font_info->cgfont); 876 CGFontRelease (font_info->cgfont);
879 #endif 877 #endif