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:
Adrien Destugues
2009-11-08 13:22:00 +00:00
parent 45f04503c6
commit 2239adbd58
2 changed files with 14 additions and 14 deletions

View File

@@ -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;
}