X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fpan-view%2Fpan-view.cc;fp=src%2Fpan-view%2Fpan-view.cc;h=1bcc7f34f80118eb20e496ec697749981ec54049;hp=82118ad4648321e4fc4b4fc8e1f8764044399814;hb=e6ad0f05a4b5ad02a94512eb4f19934c6541425c;hpb=fc81685858baf853a93fae8ef23e123b94f2c1d2 diff --git a/src/pan-view/pan-view.cc b/src/pan-view/pan-view.cc index 82118ad4..1bcc7f34 100644 --- a/src/pan-view/pan-view.cc +++ b/src/pan-view/pan-view.cc @@ -618,13 +618,7 @@ GList *pan_cache_sort(GList *list, SortType method, gboolean ascend, gboolean ca static void pan_cache_free(PanWindow *pw) { - g_list_free_full(pw->cache_list, [](gpointer data) - { - auto pc = static_cast(data); - cache_sim_data_free(pc->cd); - file_data_unref(pc->fd); - g_free(pc); - }); + g_list_free_full(pw->cache_list, reinterpret_cast(pan_cache_data_free)); pw->cache_list = nullptr; filelist_free(pw->cache_todo);