/** Finish destruction of an embedded window. * * @object The window being destroyed. */ static void gnc_embedded_window_finalize (GObject *object) { g_return_if_fail (object != NULL); g_return_if_fail (GNC_IS_EMBEDDED_WINDOW (object)); ENTER("object %p", object); gnc_gobject_tracking_forget(object); G_OBJECT_CLASS (parent_class)->finalize (object); LEAVE(" "); }
/** Finalize the gnucash plugin object. This function is called from * the G_Object level to complete the destruction of the object. It * should release any memory not previously released by the destroy * function (i.e. the private data structure), then chain up to the * parent's destroy function. * * @param object The object being destroyed. */ static void gnc_plugin_finalize (GObject *object) { GncPlugin *plugin; GncPluginPrivate *priv; g_return_if_fail (GNC_IS_PLUGIN (object)); plugin = GNC_PLUGIN (object); priv = GNC_PLUGIN_GET_PRIVATE (plugin); gnc_gobject_tracking_forget(object); G_OBJECT_CLASS (parent_class)->finalize (object); }