summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: deb839e)
raw | patch | inline | side by side (parent: deb839e)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 21 May 2007 05:21:28 +0000 (07:21 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 21 May 2007 05:21:28 +0000 (07:21 +0200) |
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index 8087950ea85987a76b1f750c2a449e2fa5b27899..da662040cecedc916b5709fefdeae6b8ae6a5b49 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
while (le != NULL)
{
callback = (int (*) (void)) le->value;
+
+ /* Advance the pointer before calling the callback allows
+ * shutdown functions to unregister themselves. If done the
+ * other way around the memory `le' points to will be freed
+ * after callback returns. */
le = le->next;
(*callback) ();