mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-28 10:56:36 +00:00
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.
This commit is contained in:
parent
e0f591953b
commit
5f4457269e
@ -1,3 +1,13 @@
|
||||
2009-06-29 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
Remove useless if-before-xfree test.
|
||||
* 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.
|
||||
|
||||
2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* process.c (send_process): Keep decoded string in a local
|
||||
|
@ -868,10 +868,8 @@ that causes need for cache in nsfont_open () */
|
||||
|
||||
for (i =0; i<0x100; i++)
|
||||
{
|
||||
if (font_info->glyphs[i])
|
||||
xfree (font_info->glyphs[i]);
|
||||
if (font_info->metrics[i])
|
||||
xfree (font_info->metrics[i]);
|
||||
xfree (font_info->glyphs[i]);
|
||||
xfree (font_info->metrics[i]);
|
||||
}
|
||||
[font_info->nsfont release];
|
||||
#ifdef NS_IMPL_COCOA
|
||||
|
@ -4018,10 +4018,8 @@ delete_tty (struct terminal *terminal)
|
||||
|
||||
xfree (tty->old_tty);
|
||||
xfree (tty->Wcm);
|
||||
if (tty->termcap_strings_buffer)
|
||||
xfree (tty->termcap_strings_buffer);
|
||||
if (tty->termcap_term_buffer)
|
||||
xfree (tty->termcap_term_buffer);
|
||||
xfree (tty->termcap_strings_buffer);
|
||||
xfree (tty->termcap_term_buffer);
|
||||
|
||||
bzero (tty, sizeof (struct tty_display_info));
|
||||
xfree (tty);
|
||||
|
@ -3995,8 +3995,7 @@ system_process_attributes (pid)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (buf)
|
||||
xfree (buf);
|
||||
xfree (buf);
|
||||
}
|
||||
if (!result)
|
||||
{
|
||||
|
@ -289,8 +289,7 @@ w32font_close (f, font)
|
||||
{
|
||||
for (i = 0; i < w32_font->n_cache_blocks; i++)
|
||||
{
|
||||
if (w32_font->cached_metrics[i])
|
||||
xfree (w32_font->cached_metrics[i]);
|
||||
xfree (w32_font->cached_metrics[i]);
|
||||
}
|
||||
xfree (w32_font->cached_metrics);
|
||||
w32_font->cached_metrics = NULL;
|
||||
|
@ -785,8 +785,7 @@ x_free_gc (f, gc)
|
||||
struct frame *f;
|
||||
GC gc;
|
||||
{
|
||||
if (gc)
|
||||
xfree (gc);
|
||||
xfree (gc);
|
||||
}
|
||||
#endif /* HAVE_NS */
|
||||
|
||||
|
@ -2395,8 +2395,7 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
|
||||
|
||||
if (!data || !format)
|
||||
{
|
||||
if (data)
|
||||
xfree (data);
|
||||
xfree (data);
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user