From 0524921799bfa2784bec3fbd5b29e77e2ed66b56 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Sat, 19 Jan 2013 11:04:01 -0800 Subject: mime: Workaround ABI breakage in newer evince Prior to 3.4, evince would allocate EvTypeInfo's in ev_backends_manager_get_all_types_info(), but now it just returns pointers into its own table. --- src/evbp-mime.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/evbp-mime.c b/src/evbp-mime.c index 4df922a..cad4eec 100644 --- a/src/evbp-mime.c +++ b/src/evbp-mime.c @@ -100,7 +100,12 @@ evbp_mime_get_description(void) types = ev_backends_manager_get_all_types_info(); mimes = build_mime_description(types); +#if EV_MAJOR_VERSION < 3 || (EV_MAJOR_VERSION == 3 && EV_MINOR_VERSION < 4) g_list_free_full(types, (GDestroyNotify)g_free); +#else + /* evince-3.4 broke the ABI and no longer allocates list elements */ + g_list_free(types); +#endif return mimes; } -- cgit v1.2.3