Mercurial > geeqie.yaz
comparison src/filelist.c @ 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 | 1eaea84877ce |
children | 4b2d7f9af171 |
comparison
equal
deleted
inserted
replaced
424:26c6e768bd47 | 425:10efd67e5d3c |
---|---|
925 | 925 |
926 void file_data_unref(FileData *fd) | 926 void file_data_unref(FileData *fd) |
927 { | 927 { |
928 if (fd == NULL) return; | 928 if (fd == NULL) return; |
929 g_assert(fd->magick == 0x12345678); | 929 g_assert(fd->magick == 0x12345678); |
930 if (debug) printf("file_data_unref: '%s'\n", fd->path); | 930 |
931 fd->ref--; | 931 fd->ref--; |
932 if (debug) printf("file_data_unref (%d): '%s'\n", fd->ref, fd->path); | |
933 | |
932 if (fd->ref == 0) | 934 if (fd->ref == 0) |
933 { | 935 { |
934 FileData *parent = fd->parent ? fd->parent : fd; | 936 FileData *parent = fd->parent ? fd->parent : fd; |
935 | 937 |
936 GList *work; | 938 GList *work; |