Patching libgltf: fix wrong deallocation method
Change-Id: I05c5650c1e43cf9ac4156e8d74073bf92ac0c4df (cherry picked from commit 3ce0f83cec6d2ee1467523209df633c5a2487f71)
This commit is contained in:
parent
6773029347
commit
00e7b772b4
1
external/libgltf/UnpackedTarball_libgltf.mk
vendored
1
external/libgltf/UnpackedTarball_libgltf.mk
vendored
@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgltf,\
|
||||
external/libgltf/patches/include_path_freetype.patch \
|
||||
external/libgltf/patches/openmp-disable.patch \
|
||||
external/libgltf/patches/rgba_textures.patch \
|
||||
external/libgltf/patches/deallocation_fix.patch \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
12
external/libgltf/patches/deallocation_fix.patch
vendored
Normal file
12
external/libgltf/patches/deallocation_fix.patch
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ur libgltf.org/src/LoadScene.cpp libgltf/src/LoadScene.cpp
|
||||
--- libgltf.org/src/LoadScene.cpp 2014-05-28 15:35:48.232375923 +0200
|
||||
+++ libgltf/src/LoadScene.cpp 2014-05-28 15:36:02.600375314 +0200
|
||||
@@ -144,7 +144,7 @@
|
||||
free(gHandle->files);
|
||||
gHandle->files = NULL;
|
||||
}
|
||||
- delete gHandle;
|
||||
+ free(gHandle);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user