]> code.delx.au - gnu-emacs/blobdiff - src/xftfont.c
More xmalloc and related cleanup.
[gnu-emacs] / src / xftfont.c
index bc0c56a0fe04cbc345c513f616f621533beba945..f999ac662ce054924660d1e0989ecffac0fb3991 100644 (file)
@@ -527,7 +527,7 @@ xftfont_prepare_face (FRAME_PTR f, struct face *face)
     }
 #endif
 
-  xftface_info = malloc (sizeof (struct xftface_info));
+  xftface_info = malloc (sizeof *xftface_info);
   if (! xftface_info)
     return -1;
   xftfont_get_colors (f, face, face->gc, NULL,