dont let gotk3 set finalizers

This commit is contained in:
tinyzimmer
2020-10-12 07:02:36 +03:00
parent ce95696cc5
commit bcbbb73659
12 changed files with 32 additions and 35 deletions

View File

@@ -21,7 +21,7 @@ func (p *PluginFeature) GetPlugin() *Plugin {
if plugin == nil {
return nil
}
return wrapPlugin(glib.Take(unsafe.Pointer(plugin)))
return wrapPlugin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(plugin))})
}
// GetPluginName returns the name of the plugin that provides this feature.