Adds a callback to the closure structure that describes
its concept of self-destruction.
/* Cleanup work directory */
if (!closure->keep_work_directory)
delete_work_directory ();
+
+ /* Destroy dynamically allocated closure */
+ if (closure->destroy_closure_func)
+ closure->destroy_closure_func (closure);
}
gint
ETestServiceType type;
ETestSourceCustomizeFunc customize;
gint calendar_source_type;
- gboolean keep_work_directory;
+ gboolean keep_work_directory;
+ GDestroyNotify destroy_closure_func;
};
/**