Free memory properly when saving a cpc .scr.
Also allow to save a brush in this format (in "screen" mode). git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1160 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -2546,10 +2546,9 @@ void Save_SCR(void)
|
||||
unsigned char r1;
|
||||
int cpc_mode;
|
||||
FILE* file;
|
||||
char filename[MAX_PATH_CHARACTERS];
|
||||
long file_size;
|
||||
char filename[MAX_PATH_CHARACTERS];
|
||||
|
||||
Get_full_filename(filename,0);
|
||||
Get_full_filename(filename,0);
|
||||
|
||||
|
||||
switch(Pixel_ratio)
|
||||
@@ -2573,5 +2572,7 @@ void Save_SCR(void)
|
||||
Write_bytes(file, output, outsize);
|
||||
fclose(file);
|
||||
|
||||
free (output);
|
||||
|
||||
File_error = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user