mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[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:
parent
e8d2d8dc66
commit
625fc1d6cd
@ -241,6 +241,11 @@ gnc_plugin_business_finalize (GObject *object)
|
|||||||
{
|
{
|
||||||
g_return_if_fail (GNC_IS_PLUGIN_BUSINESS (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);
|
G_OBJECT_CLASS (gnc_plugin_business_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user