From 599030c8fe3b60e9b23d6dab5e62122c8331ef6f Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Wed, 18 Dec 2013 15:39:37 -0800 Subject: Make destructors called explicitly rather than through callbacks While Cairo has callback support for the destructor, there's not an analogous way to do this with Skia, so instead of trying to be clever let's just build explicit destruction in. --- src/image.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/image.cpp (limited to 'src/image.cpp') diff --git a/src/image.cpp b/src/image.cpp new file mode 100644 index 0000000..b0bef53 --- /dev/null +++ b/src/image.cpp @@ -0,0 +1,11 @@ +#include +#include + +#include "image.h" + +void +cleanup_state_image (void *data) +{ + image_state_t *state = (image_state_t*)data; + free(state); +} -- cgit v1.3.1-4-g156e