Mercurial > geeqie.yaz
changeset 910:b394ecbf3dca
delete file_data_planned_change_hash when it is not used
author | nadvornik |
---|---|
date | Tue, 22 Jul 2008 17:40:24 +0000 |
parents | 6f65d3ecf353 |
children | 8adf248bf5c9 |
files | src/filedata.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filedata.c Mon Jul 21 21:38:26 2008 +0000 +++ b/src/filedata.c Tue Jul 22 17:40:24 2008 +0000 @@ -1671,6 +1671,12 @@ DEBUG_1("planned change: applying %s -> %s", fd->change->dest, fd->path); g_hash_table_remove(file_data_planned_change_hash, fd->change->dest); file_data_unref(fd); + if (g_hash_table_size(file_data_planned_change_hash) == 0) + { + g_hash_table_destroy(file_data_planned_change_hash); + file_data_planned_change_hash = NULL; + DEBUG_1("planned change: empty"); + } } }