Skip to content

Commit

Permalink
file_dat_unref: display number of references as well of path (debug o…
Browse files Browse the repository at this point in the history
…nly).
  • Loading branch information
Laurent Monin committed Apr 19, 2008
1 parent 1a73876 commit f3f92c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/filelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,10 @@ void file_data_unref(FileData *fd)
{
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;
Expand Down

0 comments on commit f3f92c3

Please sign in to comment.