[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();
}
}
}