projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff4704f
)
delete file_data_planned_change_hash when it is not used
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 22 Jul 2008 17:40:24 +0000
(17:40 +0000)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 22 Jul 2008 17:40:24 +0000
(17:40 +0000)
src/filedata.c
patch
|
blob
|
history
diff --git
a/src/filedata.c
b/src/filedata.c
index
45c5dca
..
99b91aa
100644
(file)
--- a/
src/filedata.c
+++ b/
src/filedata.c
@@
-1671,6
+1671,12
@@
static void file_data_apply_ci(FileData *fd)
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");
+ }
}
}