emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/w32font.c,v


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/w32font.c,v
Date: Mon, 04 Feb 2008 15:41:52 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Jason Rumney <jasonr>   08/02/04 15:41:52

Index: w32font.c
===================================================================
RCS file: /sources/emacs/emacs/src/w32font.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- w32font.c   4 Feb 2008 00:51:33 -0000       1.4
+++ w32font.c   4 Feb 2008 15:41:52 -0000       1.5
@@ -689,13 +689,13 @@
     /* We don't know how much space we need for the full name, so start with
        96 bytes and go up in steps of 32.  */
     len = 96;
-    name = malloc (len);
+    name = xmalloc (len);
     while (name && font_unparse_fcname (font_entity, pixel_size, name, len) < 
0)
       {
-        char *new = realloc (name, len += 32);
+        char *new = xrealloc (name, len += 32);
 
         if (! new)
-          free (name);
+          xfree (name);
         name = new;
       }
     if (name)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]