More xmalloc and related cleanup.
[bpt/emacs.git] / src / ftxfont.c
index 9fe4d41..6ebe079 100644 (file)
@@ -90,7 +90,7 @@ ftxfont_get_gcs (FRAME_PTR f, long unsigned int foreground, long unsigned int ba
        }
     }
 
-  new = malloc (sizeof (struct ftxfont_frame_data));
+  new = malloc (sizeof *new);
   if (! new)
     return NULL;
   new->next = this;