summaryrefslogtreecommitdiff
path: root/src/compositor/compositor.c
diff options
context:
space:
mode:
authorAlberts Muktupāvels <[email protected]>2015-07-21 03:40:32 +0200
committerinfirit <[email protected]>2015-09-14 18:59:28 +0200
commit768fdd8d3852e67555a585da28b6404a97853cbd (patch)
tree46e26bd3ed6ad3fffa0912baadac59448d3396b7 /src/compositor/compositor.c
parenta9b261b5c6a49ed3fa9400304e52ea9fdb528a0c (diff)
downloadmarco-768fdd8d3852e67555a585da28b6404a97853cbd.tar.bz2
marco-768fdd8d3852e67555a585da28b6404a97853cbd.tar.xz
compositor: fix possible crash closing/destroying window
Diffstat (limited to 'src/compositor/compositor.c')
-rw-r--r--src/compositor/compositor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index d23fe3f7..f7a28261 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -156,6 +156,10 @@ void meta_compositor_end_move (MetaCompositor *compositor,
void meta_compositor_free_window (MetaCompositor *compositor,
MetaWindow *window)
{
+#ifdef HAVE_COMPOSITE_EXTENSIONS
+ if (compositor && compositor->free_window)
+ compositor->free_window (compositor, window);
+#endif
}
void