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:
		
							parent
							
								
									b437d458d4
								
							
						
					
					
						commit
						dee88e4517
					
				@ -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;
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user