aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_free_render_context.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libglitter_free_render_context.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libglitter_free_render_context.c b/libglitter_free_render_context.c
new file mode 100644
index 0000000..4eb15c2
--- /dev/null
+++ b/libglitter_free_render_context.c
@@ -0,0 +1,13 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+void
+libglitter_free_render_context(LIBGLITTER_RENDER_CONTEXT *this)
+{
+ if (this) {
+ free(this->cellweights_double);
+ free(this->cellweights_float);
+ free(this);
+ }
+}