Mercurial > geeqie
changeset 425:10efd67e5d3c
file_dat_unref: display number of references as well of path (debug only).
author | zas_ |
---|---|
date | Sat, 19 Apr 2008 17:14:03 +0000 |
parents | 26c6e768bd47 |
children | 9fe0ca1b5263 |
files | src/filelist.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filelist.c Sat Apr 19 16:26:29 2008 +0000 +++ b/src/filelist.c Sat Apr 19 17:14:03 2008 +0000 @@ -927,8 +927,10 @@ { if (fd == NULL) return; g_assert(fd->magick == 0x12345678); - if (debug) printf("file_data_unref: '%s'\n", fd->path); + fd->ref--; + if (debug) printf("file_data_unref (%d): '%s'\n", fd->ref, fd->path); + if (fd->ref == 0) { FileData *parent = fd->parent ? fd->parent : fd;