leaks fix (valgrind full leak check) in world

This commit is contained in:
MihailRis
2024-04-30 03:17:24 +03:00
parent f8289a5d78
commit 3b4fc2dfea
10 changed files with 215 additions and 222 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ assetload::postfunc assetload::texture(
imageio::read(paths->find(filename+".png").u8string()).release()
);
return [name, image](auto assets) {
assets->store(Texture::from(image.get()), name);
assets->store(Texture::from(image.get()).release(), name);
};
}