Ensure pointers are put back to NULL when freed.
--Cette ligne, et les suivantes ci-dessous, seront ignorées-- M trunk/palette.c M trunk/init.c M trunk/engine.c M trunk/filesel.c M trunk/miscfileformats.c M trunk/pages.c M trunk/brush_ops.c M trunk/op_c.c M trunk/operatio.c M trunk/brush.c M trunk/loadsave.c M trunk/graph.c M trunk/fileformats.c M trunk/main.c git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1277 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -2226,6 +2226,7 @@ void Polyfill_12_9(void)
|
||||
Display_all_screen();
|
||||
Polyfill(Polyfill_number_of_points,Polyfill_table_of_points,color);
|
||||
free(Polyfill_table_of_points);
|
||||
Polyfill_table_of_points = NULL;
|
||||
|
||||
End_of_modification();
|
||||
if ( (Config.Coords_rel) && (Menu_is_visible) )
|
||||
@@ -2556,6 +2557,7 @@ void Filled_polyform_12_8(void)
|
||||
Display_all_screen();
|
||||
Polyfill(Polyfill_number_of_points,Polyfill_table_of_points,color);
|
||||
free(Polyfill_table_of_points);
|
||||
Polyfill_table_of_points = NULL;
|
||||
|
||||
Paintbrush_hidden=0;
|
||||
|
||||
@@ -2640,6 +2642,7 @@ void Filled_contour_0_8(void)
|
||||
Display_all_screen();
|
||||
Polyfill(Polyfill_number_of_points,Polyfill_table_of_points,color);
|
||||
free(Polyfill_table_of_points);
|
||||
Polyfill_table_of_points = NULL;
|
||||
|
||||
Paintbrush_hidden=0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user