Fix major memory leak in autoloader introduced by recent autounloader patch

darcs-hash:20061012133012-ac50b-d03de17d9df4d41db075b24c2f7e48ad8c0f6417.gz
This commit is contained in:
axel 2006-10-12 23:30:12 +10:00
parent b70b966f90
commit 5a8df6cc85

View file

@ -639,6 +639,7 @@ static void parse_util_autounload( const wchar_t *path_var_name,
oldest_item = item;
}
}
al_destroy( &key );
if( oldest_item && loaded_count > AUTOLOAD_MAX)
{