summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-21 18:15:15 +0100
committerraveit65 <[email protected]>2022-01-27 08:29:33 +0100
commit89686c62f46565ae828112ae148f7f785fe5fcca (patch)
treeea070042dcdfe92366bc25f41c510b5bf558b059
parent771b7ae6931dffc46288364ad1363a07225862e7 (diff)
downloadmarco-89686c62f46565ae828112ae148f7f785fe5fcca.tar.bz2
marco-89686c62f46565ae828112ae148f7f785fe5fcca.tar.xz
compositor-xrender: remove unrequired g_free because of g_new0
-rw-r--r--src/compositor/compositor-xrender.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index fff82b21..d496c384 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -402,11 +402,6 @@ presum_gaussian (shadow *shad)
msize = map->size;
centre = map->size / 2;
- if (shad->shadow_corner)
- g_free (shad->shadow_corner);
- if (shad->shadow_top)
- g_free (shad->shadow_top);
-
shad->shadow_corner = (guchar *)(g_malloc ((msize + 1) * (msize + 1) * 26));
shad->shadow_top = (guchar *) (g_malloc ((msize + 1) * 26));