summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-06-26 23:07:24 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-06-26 23:07:24 +0200
commit9168aaf5f275491512eb74c8d92939f860468cb0 (patch)
treefbf1dd29256e97729f27810b5c1e5e05e99c6a73
parent5d2c68da7428a37e27175762283a568b2ba089dc (diff)
download3d-9168aaf5f275491512eb74c8d92939f860468cb0.tar.gz
3d-9168aaf5f275491512eb74c8d92939f860468cb0.tar.bz2
Unload correctly.
-rw-r--r--3d.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/3d.c b/3d.c
index f39a7cd..7498642 100644
--- a/3d.c
+++ b/3d.c
@@ -1004,8 +1004,13 @@ static Bool tdInitPluginForDisplay (CompPlugin *p, CompDisplay *d)
static void tdFiniPluginForDisplay (CompPlugin *p, CompDisplay *d)
{
- TD_DISPLAY(d);
- if (strcmp(p->vTable->name, "cube") == 0)
+ TD_DISPLAY(d);
+
+ UNWRAP (tdd, d, finiPluginForDisplay);
+ (*d->finiPluginForDisplay) (p, d);
+ WRAP (tdd, d, finiPluginForDisplay, tdFiniPluginForDisplay);
+
+ if (strcmp(p->vTable->name, "cube") == 0)
{
CompScreen *s;
for (s = d->screens; s; s = s->next)
@@ -1019,10 +1024,6 @@ static void tdFiniPluginForDisplay (CompPlugin *p, CompDisplay *d)
UNWRAP(tds, s, initWindowWalker);
}
}
-
- UNWRAP (tdd, d, finiPluginForDisplay);
- (*d->finiPluginForDisplay) (p, d);
- WRAP (tdd, d, finiPluginForDisplay, tdFiniPluginForDisplay);
}
static Bool tdInitDisplay(CompPlugin * p, CompDisplay * d)