]> git.donarmstrong.com Git - lilypond.git/commitdiff
Match realloc/free with malloc rather than new.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 9 Sep 2008 15:42:06 +0000 (12:42 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 9 Sep 2008 15:45:17 +0000 (12:45 -0300)
lily/pfb.cc

index 3cee20618921fe8870ca7c2c3437476159be2f29..438fe78497e8b3ddc6c259803e87197f7b4d0053 100644 (file)
@@ -21,7 +21,7 @@ using namespace std;
 char *
 pfb2pfa (Byte const *pfb, int length)
 {
-  char *out = new char[1];
+  char *out = (char*) malloc(sizeof(char));
   int olen = 0;
 
   Byte const *p = pfb;