summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Dennedy <dan@dennedy.org>2014-11-11 04:46:12 (GMT)
committer Dan Dennedy <dan@dennedy.org>2014-11-11 04:46:12 (GMT)
commitbaa08d27193d758b5139dfa503dbedc881298f1c (patch)
tree2b855ab9bd0a0bc6f203115b5c2420331ca590f1
parent75e89401ac9c3f280acfc6dc6bc61491eab97b49 (diff)
Fix memory leaks in cairoblend and cairoaffineblend.
-rw-r--r--src/mixer2/cairoaffineblend/cairoaffineblend.c1
-rw-r--r--src/mixer2/cairoblend/cairoblend.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mixer2/cairoaffineblend/cairoaffineblend.c b/src/mixer2/cairoaffineblend/cairoaffineblend.c
index dba1c51..390e50e 100644
--- a/src/mixer2/cairoaffineblend/cairoaffineblend.c
+++ b/src/mixer2/cairoaffineblend/cairoaffineblend.c
@@ -143,6 +143,7 @@ f0r_instance_t f0r_construct(unsigned int width, unsigned int height)
void f0r_destruct(f0r_instance_t instance)
{
cairo_affineblend_instance_t* inst = (cairo_affineblend_instance_t*)instance;
+ free(inst->blend_mode);
free(instance);
}
diff --git a/src/mixer2/cairoblend/cairoblend.c b/src/mixer2/cairoblend/cairoblend.c
index 502b622..51b0154 100644
--- a/src/mixer2/cairoblend/cairoblend.c
+++ b/src/mixer2/cairoblend/cairoblend.c
@@ -93,6 +93,7 @@ f0r_instance_t f0r_construct(unsigned int width, unsigned int height)
void f0r_destruct(f0r_instance_t instance)
{
cairo_blend_instance_t* inst = (cairo_blend_instance_t*)instance;
+ free(inst->blend_mode);
free(instance);
}