Commit 26e38c7d authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

plugin cache: fix memory leaks

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent aae71c2b
...@@ -411,6 +411,9 @@ static void AllocatePluginPath (vlc_object_t *p_this, const char *path, ...@@ -411,6 +411,9 @@ static void AllocatePluginPath (vlc_object_t *p_this, const char *path,
free (cache[i].path); free (cache[i].path);
} }
free( cache ); free( cache );
for (size_t i = 0; i < bank.i_cache; i++)
free (bank.cache[i].path);
free (bank.cache);
break; break;
case CACHE_RESET: case CACHE_RESET:
CacheSave (p_this, path, bank.cache, bank.i_cache); CacheSave (p_this, path, bank.cache, bank.i_cache);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment