summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/bench.c
diff options
context:
space:
mode:
authorixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-17 00:36:25 +0000
committerixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-17 00:36:25 +0000
commit742b84efc50e1f21c916193feaa7c1daaeb02d52 (patch)
tree2c5f0a1dba25367bbb21ffff4fafd64b1bd67e94 /beryl-plugins/src/bench.c
parent8cecec47ac63cf3002990bb0a0d3181ed948055f (diff)
downloadmarex-dev-742b84efc50e1f21c916193feaa7c1daaeb02d52.tar.gz
marex-dev-742b84efc50e1f21c916193feaa7c1daaeb02d52.tar.bz2
beryl-plugins, beryl-vidcap: correctly unhandle actions when plugin get unloaded
git-svn-id: file:///beryl/trunk@1251 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/bench.c')
-rw-r--r--beryl-plugins/src/bench.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/beryl-plugins/src/bench.c b/beryl-plugins/src/bench.c
index 52ab2bc..40d2926 100644
--- a/beryl-plugins/src/bench.c
+++ b/beryl-plugins/src/bench.c
@@ -473,6 +473,7 @@ benchFiniScreen (CompPlugin * p, CompScreen * s)
{
BENCH_SCREEN (s);
+ BENCH_DISPLAY (s->display);
glDeleteLists (bs->dList, 2);
glDeleteTextures (10, bs->numTex);
@@ -482,6 +483,9 @@ benchFiniScreen (CompPlugin * p, CompScreen * s)
UNWRAP (bs, s, paintScreen);
UNWRAP (bs, s, preparePaintScreen);
UNWRAP (bs, s, donePaintScreen);
+
+ removeScreenAction (s, &bd->opt[BENCH_DISPLAY_OPTION_INITIATE].value.action);
+
//Free the pointer
free (bs);