[phobos] [D-Programming-Language/phobos] bff325: File.detach should decrement the ref count - Issue...

GitHub noreply at github.com
Mon May 28 14:17:39 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: bff3254afc020df1fd55565930c394993334d509
      https://github.com/D-Programming-Language/phobos/commit/bff3254afc020df1fd55565930c394993334d509
  Author: Mike Wey <mike at mikewey.eu>
  Date:   2012-05-21 (Mon, 21 May 2012)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  File.detach should decrement the ref count - Issue 7022

Because detach invalidates a copy of the File struct it should also decrement the ref count.
The File destructor doesn't take care of this because by then p is already null.


  Commit: fa52571d8c7d128393fae5b61f0018d53726425f
      https://github.com/D-Programming-Language/phobos/commit/fa52571d8c7d128393fae5b61f0018d53726425f
  Author: Jonathan M Davis <jmdavisProg at gmx.com>
  Date:   2012-05-28 (Mon, 28 May 2012)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  Merge pull request #530 from MikeWey/patch-1

File.detach should decrement the ref count - Issue 7022


Compare: https://github.com/D-Programming-Language/phobos/compare/2bf0ff9...fa52571


More information about the phobos mailing list