]> git.proxmox.com Git - libgit2.git/commit
mwindow: allow memory-window files to deregister
authorCarlos Martin Nieto <cmn@elego.de>
Thu, 28 Jun 2012 10:05:49 +0000 (12:05 +0200)
committerCarlos Martin Nieto <cmn@elego.de>
Thu, 28 Jun 2012 10:10:33 +0000 (12:10 +0200)
commit1d8943c640bad4425b8578aae6f680fa8e513bc7
tree1449d930980d07f5c7a1c12d1f9b0c63b41ba4ab
parent1de44c24936ecf39915913ddf26f68f78c7963d3
mwindow: allow memory-window files to deregister

Once a file is registered, there is no way to deregister it, even
after the structure that contains it is no longer needed and has been
freed. This may be the source of #624.

Allow and use the deregister function to remove our file from the
global list.
src/indexer.c
src/mwindow.c
src/mwindow.h
src/pack.c