mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-29 13:03:43 +01:00
Fix : Fuite de mémoire
This commit is contained in:
parent
c0d0c23ef9
commit
b5a5ae2a5a
1 changed files with 2 additions and 0 deletions
|
@ -99,6 +99,8 @@ int as_reconstruct_path(int16_t *came_from, int w, int h, int16_t spos,
|
||||||
npc->ypath[npc->path_length-i] = ty;
|
npc->ypath[npc->path_length-i] = ty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(came_from);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
as_recons_fail:
|
as_recons_fail:
|
||||||
|
|
Loading…
Reference in a new issue