mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
[gib] Plug some memory leaks
Builtins seem to leak a little on shutdown. Not sure how they are in a long running app.
This commit is contained in:
parent
edf5c66321
commit
826d66efaf
1 changed files with 8 additions and 0 deletions
|
@ -1039,6 +1039,12 @@ GIB_bp4_f (void)
|
|||
{
|
||||
}
|
||||
|
||||
static void
|
||||
gib_builtin_shutdown (void *data)
|
||||
{
|
||||
Hash_DelTable (gib_builtins);
|
||||
}
|
||||
|
||||
void
|
||||
GIB_Builtin_Init (qboolean sandbox)
|
||||
{
|
||||
|
@ -1090,4 +1096,6 @@ GIB_Builtin_Init (qboolean sandbox)
|
|||
GIB_Builtin_Add ("bp2", GIB_bp2_f);
|
||||
GIB_Builtin_Add ("bp3", GIB_bp3_f);
|
||||
GIB_Builtin_Add ("bp4", GIB_bp4_f);
|
||||
|
||||
Sys_RegisterShutdown (gib_builtin_shutdown, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue