Showing the changes to array.c (1 of 8 files). Show all
Unified · Split
| @@ -25,13 +25,13 @@ pdfarray(Pdf *pdf, Biobuf *b) · 24 unmodified lines | |||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | Bungetc(b); | 27 | Bungetc(b); |
| 28 | if((m = pdfobject(pdf, b)) == nil){ | 28 | if((m = pdfobj(pdf, b)) == nil){ |
| 29 | noel = 1; | 29 | noel = 1; |
| 30 | continue; | 30 | continue; |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | if((a = realloc(o->array.e, (o->array.ne+1)*sizeof(Object*))) == nil){ | 33 | if((a = realloc(o->array.e, (o->array.ne+1)*sizeof(Object*))) == nil){ |
| 34 | freeobject(m); | 34 | pdfobjfree(m); |
| 35 | goto err; | 35 | goto err; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| @@ -47,6 +47,6 @@ pdfarray(Pdf *pdf, Biobuf *b) · 9 unmodified lines | |||
| 47 | return o; | 47 | return o; |
| 48 | err: | 48 | err: |
| 49 | werrstr("array: %r"); | 49 | werrstr("array: %r"); |
| 50 | freeobject(o); | 50 | pdfobjfree(o); |
| 51 | return nil; | 51 | return nil; |
| 52 | } | 52 | } |