Fix a memory corruption that's been lurking in 'setpicturesize' (for Lua scripts) since r1611 (September 2010) but only affected multi-layered images.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1965 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2012-06-21 18:03:54 +00:00
parent b437d458d4
commit dee88e4517

View File

@ -957,7 +957,7 @@ int Backup_in_place(int width,int height)
// Perform all allocations first
new_layer=calloc(Main_backups->Pages->Nb_layers,1);
new_layer=calloc(Main_backups->Pages->Nb_layers,sizeof(byte *));
if (!new_layer)
return 0;