We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3dcac1 commit e9d10f3Copy full SHA for e9d10f3
āpackages/skia/cpp/api/JsiSkImageFilterFactory.hā
@@ -245,9 +245,11 @@ class JsiSkImageFilterFactory : public JsiSkHostObject {
245
JSI_HOST_FUNCTION(MakeRuntimeShader) {
246
auto rtb = JsiSkRuntimeShaderBuilder::fromValue(runtime, arguments[0]);
247
248
- const char *childName = "";
+ std::string childNameStr = "";
249
+ const char *childName = childNameStr.c_str();
250
if (hasOptionalArgument(arguments, count, 1)) {
- childName = arguments[1].asString(runtime).utf8(runtime).c_str();
251
+ childNameStr = arguments[1].asString(runtime).utf8(runtime);
252
+ childName = childNameStr.c_str();
253
}
254
255
sk_sp<SkImageFilter> input = nullptr;
0 commit comments