[gnc-plugin-business.c] free owners from business plugin

They're being allocated with gncOwnerNew in gnc_plugin_business_init
This commit is contained in:
Christopher Lam 2023-07-06 22:57:34 +08:00
parent e8d2d8dc66
commit 625fc1d6cd

View File

@ -241,6 +241,11 @@ gnc_plugin_business_finalize (GObject *object)
{
g_return_if_fail (GNC_IS_PLUGIN_BUSINESS (object));
GncPluginBusiness *plugin = (GncPluginBusiness*) object;
gncOwnerFree (plugin->last_customer);
gncOwnerFree (plugin->last_vendor);
gncOwnerFree (plugin->last_employee);
G_OBJECT_CLASS (gnc_plugin_business_parent_class)->finalize (object);
}