projects
/
geeqie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deduplicate PanCacheData destroying
[geeqie.git]
/
src
/
pan-view
/
pan-view.cc
diff --git
a/src/pan-view/pan-view.cc
b/src/pan-view/pan-view.cc
index
82118ad
..
1bcc7f3
100644
(file)
--- 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)
{
static void pan_cache_free(PanWindow *pw)
{
- g_list_free_full(pw->cache_list, [](gpointer data)
- {
- auto pc = static_cast<PanCacheData *>(data);
- cache_sim_data_free(pc->cd);
- file_data_unref(pc->fd);
- g_free(pc);
- });
+ g_list_free_full(pw->cache_list, reinterpret_cast<GDestroyNotify>(pan_cache_data_free));
pw->cache_list = nullptr;
filelist_free(pw->cache_todo);
pw->cache_list = nullptr;
filelist_free(pw->cache_todo);