1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-21 20:07:06 +00:00

Correct some memory leaks found by MSVC

This commit is contained in:
hooper114
2009-06-18 10:20:23 +00:00
parent 6c631bf282
commit 18b986156f
10 changed files with 60 additions and 35 deletions

View File

@@ -389,6 +389,7 @@ int ZBarcode_Encode(struct zint_symbol *symbol, unsigned char *source)
int input_length;
input_length = ustrlen(source);
#ifndef _MSC_VER
unsigned char preprocessed[input_length];
#else
@@ -595,7 +596,7 @@ int ZBarcode_Print(struct zint_symbol *symbol)
/* int i, j;
for(i = 0; i < symbol->rows; i++) {
for(j = 0; j < symbol->width / 7; j++) {
for(j = 0; j <= symbol->width / 7; j++) {
printf("%2.2X ", symbol->encoded_data[i][j]);
}
printf("\n");