D-Programming-Language/phobos — pull request #527 by mylodon (2012-04-07 16:18:53+00:00)
Title: fix issue 7022

fix issue 7831

detach sets p=null, which makes it kind of hard for the destructor
to actually close the file or decrement the reference count.