mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
leaks fix (valgrind full leak check) in world
This commit is contained in:
parent
f8289a5d78
commit
3b4fc2dfea
10 changed files with 215 additions and 222 deletions
|
|
@ -218,7 +218,7 @@ bool AssetsLoader::loadExternalTexture(
|
|||
if (fs::exists(path)) {
|
||||
try {
|
||||
auto image = imageio::read(path.string());
|
||||
assets->store(Texture::from(image.get()), name);
|
||||
assets->store(Texture::from(image.get()).release(), name);
|
||||
return true;
|
||||
} catch (const std::exception& err) {
|
||||
logger.error() << "error while loading external "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue