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 6a6d0e7 commit 50ffba9Copy full SHA for 50ffba9
go/native/client.go
@@ -52,7 +52,9 @@ func NewNativeServiceClientWithPluginAgent(pluginAgent uint64) *NativeServiceCli
52
c := new(NativeServiceClient)
53
c.svc = serviceNew(pluginAgent)
54
runtime.SetFinalizer(c, func(x *NativeServiceClient) {
55
- serviceDelete(x.svc)
+ if x.svc != 0 {
56
+ serviceDelete(x.svc)
57
+ }
58
closeLibrary(lib)
59
})
60
return c
0 commit comments