[bugfix] use after free & fix travis (#2268)

* fix use after free

* fix travis

* fix log
This commit is contained in:
Arnold
2020-03-13 09:35:16 +08:00
committed by GitHub
parent 60bcebefd6
commit eebc0bf051
2 changed files with 11 additions and 6 deletions
@@ -95,7 +95,7 @@ static bool js_gfx_GLES2Device_copyTexImagesToTexture(se::State& s)
CC_UNUSED size_t dataLength = 0;
cocos2d::Data bufferData;
ok &= seval_to_Data(value, &bufferData);
arg0.datas[i] = bufferData.getBytes();
arg0.datas[i] = bufferData.takeBuffer();
}
}
}
+10 -5
View File
@@ -31,11 +31,16 @@ function install_android_ndk()
function install_clang()
{
echo "Download clang"
curl -O http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
echo "Decompress clang"
tar xpf ./clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
cp ./clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/lib/libclang.so.5.0 $COCOS2DX_ROOT/tools/bindings-generator/libclang/libclang.so
if [ ! -f $COCOS2DX_ROOT/tools/bindings-generator/libclang/libclang.so ]; then
echo "Download clang"
curl -O http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
echo "Decompress clang"
tar xpf ./clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
cp ./clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/lib/libclang.so.5.0 $COCOS2DX_ROOT/tools/bindings-generator/libclang/libclang.so
else
echo "Skip downloading clang"
echo " file $COCOS2DX_ROOT/tools/bindings-generator/libclang/libclang.so exists!"
fi
}
function install_python_module_for_osx()