diff options
Diffstat (limited to 'vhook/imlib2.c')
-rw-r--r-- | vhook/imlib2.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/vhook/imlib2.c b/vhook/imlib2.c index fcc09e17f3..576b45d004 100644 --- a/vhook/imlib2.c +++ b/vhook/imlib2.c @@ -72,6 +72,19 @@ typedef struct _CachedImage { int height; } CachedImage; +void Release(void *ctx) +{ + ContextInfo *ci; + ci = (ContextInfo *) ctx; + + if (ci->cache) { + imlib_context_set_image(ci->cache->image); + imlib_free_image(); + av_free(ci->cache); + } + if (ctx) + av_free(ctx); +} int Configure(void **ctxp, int argc, char *argv[]) { @@ -261,6 +274,3 @@ done: ; } -/* To ensure correct typing */ -FrameHookConfigureFn ConfigureFn = Configure; -FrameHookProcessFn ProcessFn = Process; |