Load_INFO() fix memory leak
This commit is contained in:
parent
e48e2101e4
commit
b388bc56a8
@ -2751,10 +2751,14 @@ void Load_INFO(T_IO_Context * context)
|
|||||||
}
|
}
|
||||||
for (y_pos = 0; y_pos < imgheaders[img_count].Height; y_pos++)
|
for (y_pos = 0; y_pos < imgheaders[img_count].Height; y_pos++)
|
||||||
Draw_IFF_line(context, buffers[img_count] + y_pos * line_size, y_pos, plane_line_size << 3, imgheaders[img_count].Depth);
|
Draw_IFF_line(context, buffers[img_count] + y_pos * line_size, y_pos, plane_line_size << 3, imgheaders[img_count].Depth);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (img_count = 0; img_count < 2; img_count++)
|
||||||
|
if (buffers[img_count] != NULL)
|
||||||
|
{
|
||||||
free(buffers[img_count]);
|
free(buffers[img_count]);
|
||||||
buffers[img_count] = NULL;
|
buffers[img_count] = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
File_error=1;
|
File_error=1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user