Commits

ESSS committed b9761fc

Fix pfb allocation to match the deletion (gt1-parset1.c:3071)

  • Participants
  • Parent commits 6cd12d6

Comments (0)

Files changed (1)

File src/rl_addons/renderPM/_renderPM.c

 #include <string.h>
 #include "libart_lgpl/libart.h"
 #include "gt1/gt1-parset1.h"
+#include "gt1/gt1-misc.h"
 
 #if defined(macintosh)
 #	include <extras.h>
 			char	*pystr = PyString_AS_STRING(result);
 			int		size = PyString_GET_SIZE(result);
 			*psize = size;
-			memcpy(pfb=PyMem_Malloc(size),pystr,size);
+			memcpy(pfb=gt1_alloc(size),pystr,size);
 			}
 		Py_DECREF(result);
 		}