mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 13:34:19 -04:00
memleak --
This commit is contained in:
parent
5ec2e85467
commit
3bb2c46210
2 changed files with 5 additions and 3 deletions
|
@ -403,6 +403,7 @@ int maxi_png_plot(struct zint_symbol *symbol, int rotate_angle)
|
|||
}
|
||||
|
||||
png_to_file(symbol, image_height, image_width, pixelbuf, rotate_angle);
|
||||
free(pixelbuf);
|
||||
}
|
||||
|
||||
int png_plot(struct zint_symbol *symbol, int rotate_angle)
|
||||
|
@ -786,8 +787,9 @@ int png_plot(struct zint_symbol *symbol, int rotate_angle)
|
|||
textpos = (image_width / 2);
|
||||
draw_string(pixelbuf, symbol->text, textpos, (image_height - 17), image_width, image_height);
|
||||
}
|
||||
|
||||
|
||||
png_to_file(symbol, image_height, image_width, pixelbuf, rotate_angle);
|
||||
free(pixelbuf);
|
||||
}
|
||||
|
||||
int png_handle(struct zint_symbol *symbol, int rotate_angle)
|
||||
|
@ -801,4 +803,4 @@ int png_handle(struct zint_symbol *symbol, int rotate_angle)
|
|||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue