diff options
author | David Reveman <davidr@novell.com> | 2007-09-05 09:54:49 -0400 |
---|---|---|
committer | David Reveman <davidr@novell.com> | 2007-09-05 09:54:49 -0400 |
commit | 4530cf0f095df003bb9d18586999efbcd4f72154 (patch) | |
tree | f7661c0711b8dc75dccf099db28a66f83af99fca | |
parent | 78d0c0e6b48a5820d39bd6372eace63af949bec3 (diff) |
Move plugin and display removal to finiCore and call
finiCore from main.
-rw-r--r-- | src/core.c | 3 | ||||
-rw-r--r-- | src/display.c | 4 | ||||
-rw-r--r-- | src/main.c | 2 |
3 files changed, 5 insertions, 4 deletions
@@ -160,6 +160,9 @@ initCore (void) void finiCore (void) { + while (popPlugin ()); + while (core.displays) + removeDisplay (core.displays); } void diff --git a/src/display.c b/src/display.c index 13f3b771..7b512005 100644 --- a/src/display.c +++ b/src/display.c @@ -1876,10 +1876,6 @@ eventLoop (void) XDestroyRegion (outputRegion); XDestroyRegion (tmpRegion); - - while (popPlugin ()); - while (core.displays) - removeDisplay (core.displays); } static int errors = 0; @@ -446,6 +446,8 @@ main (int argc, char **argv) if (!disableSm) closeSession (); + finiCore (); + xmlCleanupParser (); if (restartSignal) |