changeset 59041:b978ab01b88e

(mac_do_list_fonts): Fix memory leak
author Steven Tamm <steventamm@mac.com>
date Mon, 20 Dec 2004 16:46:17 +0000
parents 8f24915289a8
children aebe7bad4263
files src/ChangeLog src/macterm.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Dec 20 11:06:54 2004 +0000
+++ b/src/ChangeLog	Mon Dec 20 16:46:17 2004 +0000
@@ -1,3 +1,7 @@
+2004-12-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+	* macterm.c (mac_do_list_fonts): Fix memory leak
+
 2004-12-20  Richard M. Stallman  <rms@gnu.org>
 
 	* regex.c (re_match_2_internal) <symend, wordend>:
--- a/src/macterm.c	Mon Dec 20 11:06:54 2004 +0000
+++ b/src/macterm.c	Mon Dec 20 16:46:17 2004 +0000
@@ -6426,7 +6426,7 @@
 	{
 	  font_list = Fcons (fontname, font_list);
 	  if (exact || maxnames > 0 && ++n_fonts >= maxnames)
-	    return font_list;
+	    break;
 	}
       else if (scl_val[XLFD_SCL_PIXEL_SIZE] > 0
 	       && (ptr = strstr (font_name_table[i], "-0-0-75-75-m-0-")))
@@ -6446,7 +6446,7 @@
 	    {
 	      font_list = Fcons (fontname, font_list);
 	      if (exact || maxnames > 0 && ++n_fonts >= maxnames)
-		return font_list;
+		break;
 	    }
 	}
     }