L
Luto
Guest
i want to report a memory leak in function font_sprite_add_ext()
////CONTROL OBJECT
//create event
global.tlfont=0;
global.tlfont=font_add_sprite_ext(sprite3, "abcde" , false, 2); // my sprite3 have 5 subimages of 32x32 size
//key pressed A event
font_delete(global.tlfont);
global.tlfont=0;
game_restart(); // game_restart or room_restart the memory leak always stay
NOTE: if you check the global.tlfont variable with the debugger, it always add +1 in every restart of the game
NOTE: in three restarts i see that the memory leak is 0.37K is nothing but still it is a memory leak.
NOTE: try to add function draw_texture_flush(); and surface_free(application_surface); not work
try to add function font_delete in the create event but still not work:
//create event
global.tlfont=0;
if font_exists(global.tlfont)
{
font_delete(global.tlfont);
global.tlfont=0;
}
global.tlfont=font_add_sprite_ext(sprite3, "abcde" , false, 2); // my sprite3 have 5 subimages of 32x32 size
NOTE: "sorry for possible errors in the sintaxis i not have game maker studio in this pc to check for errors."
////CONTROL OBJECT
//create event
global.tlfont=0;
global.tlfont=font_add_sprite_ext(sprite3, "abcde" , false, 2); // my sprite3 have 5 subimages of 32x32 size
//key pressed A event
font_delete(global.tlfont);
global.tlfont=0;
game_restart(); // game_restart or room_restart the memory leak always stay
NOTE: if you check the global.tlfont variable with the debugger, it always add +1 in every restart of the game
NOTE: in three restarts i see that the memory leak is 0.37K is nothing but still it is a memory leak.
NOTE: try to add function draw_texture_flush(); and surface_free(application_surface); not work
try to add function font_delete in the create event but still not work:
//create event
global.tlfont=0;
if font_exists(global.tlfont)
{
font_delete(global.tlfont);
global.tlfont=0;
}
global.tlfont=font_add_sprite_ext(sprite3, "abcde" , false, 2); // my sprite3 have 5 subimages of 32x32 size
NOTE: "sorry for possible errors in the sintaxis i not have game maker studio in this pc to check for errors."