Skip to content

Commit ee4acea

Browse files
authored
hotfix: wrong default go value in FluProjectArgs
1 parent 1022bda commit ee4acea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

embedder/embedder.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ func (flu *FlutterEngine) Run(userData unsafe.Pointer, vmArgs []string) Result {
122122
defer C.free(unsafe.Pointer(icuDataPath))
123123

124124
args := C.FlutterProjectArgs{
125-
assets_path: assetsPath,
126-
icu_data_path: icuDataPath,
127-
command_line_argv: (**C.char)(cVMArgs),
128-
command_line_argc: C.int(len(vmArgs)),
125+
assets_path: assetsPath,
126+
icu_data_path: icuDataPath,
127+
command_line_argv: (**C.char)(cVMArgs),
128+
command_line_argc: C.int(len(vmArgs)),
129+
shutdown_dart_vm_when_done: true,
129130
}
130131

131132
args.struct_size = C.size_t(unsafe.Sizeof(args))

0 commit comments

Comments
 (0)