diff options
author | David Reveman <davidr@novell.com> | 2006-12-28 17:52:35 +0100 |
---|---|---|
committer | David Reveman <davidr@novell.com> | 2006-12-28 17:52:35 +0100 |
commit | 6fb92879b2949843d4eca1a7b87bd4a5ded33e62 (patch) | |
tree | 8c064f85f40e4f36406f0a1cabde9a4e8b07ac59 /libdecoration | |
parent | 523d01f92ce610d10f97cd8436f08cdc96da95ae (diff) |
Free memory allocated earlier if out-of-memory. Very unlikely to happen.
Diffstat (limited to 'libdecoration')
-rw-r--r-- | libdecoration/decoration.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdecoration/decoration.c b/libdecoration/decoration.c index 91486e78..69b85e05 100644 --- a/libdecoration/decoration.c +++ b/libdecoration/decoration.c @@ -877,7 +877,10 @@ create_gaussian_kernel (double radius, params = malloc (sizeof (XFixed) * n); if (!params) + { + free (amp); return NULL; + } i = 0; sum = 0.0f; |