diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2013-01-19 11:04:01 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2013-01-19 16:05:18 -0800 |
commit | 0524921799bfa2784bec3fbd5b29e77e2ed66b56 (patch) | |
tree | 036b86592563340c9d2f61646ac931c51337a064 | |
parent | 4b1cd7a726e86fefe4ec705a91ed808245b7a395 (diff) |
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.
-rw-r--r-- | src/evbp-mime.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |