Fix a memory leak spotted by cppcheck.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1168 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
395c225463
commit
7283412da2
2
misc.h
2
misc.h
@ -23,6 +23,8 @@
|
|||||||
/// Miscellanous unsorted functions.
|
/// Miscellanous unsorted functions.
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "struct.h"
|
||||||
|
|
||||||
void Copy_image_to_brush(short start_x,short start_y,short Brush_width,short Brush_height,word image_width);
|
void Copy_image_to_brush(short start_x,short start_y,short Brush_width,short Brush_height,word image_width);
|
||||||
void Remap_general_lowlevel(byte * conversion_table,byte * buffer,short width,short height,short buffer_width);
|
void Remap_general_lowlevel(byte * conversion_table,byte * buffer,short width,short height,short buffer_width);
|
||||||
void Scroll_picture(byte * main_src, byte * main_dest, short x_offset,short y_offset);
|
void Scroll_picture(byte * main_src, byte * main_dest, short x_offset,short y_offset);
|
||||||
|
|||||||
@ -428,6 +428,7 @@ int Save_INI(T_Config * conf)
|
|||||||
if (Ancien_fichier==0)
|
if (Ancien_fichier==0)
|
||||||
{
|
{
|
||||||
fclose(Ancien_fichier);
|
fclose(Ancien_fichier);
|
||||||
|
free(buffer);
|
||||||
return ERROR_INI_MISSING;
|
return ERROR_INI_MISSING;
|
||||||
}
|
}
|
||||||
Nouveau_fichier=fopen(filename,"wb");
|
Nouveau_fichier=fopen(filename,"wb");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user