mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 02:02:41 +08:00
[bugfix] use after free & fix travis (#2268)
* fix use after free * fix travis * fix log
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user