Skip to content

Commit

Permalink
Don't delete null reference/pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jul 13, 2014
1 parent 16db4ef commit 1b85a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/typecons.d
Expand Up @@ -132,7 +132,7 @@ public:
~this()
{
debug(Unique) writeln("Unique destructor of ", (_p is null)? null: _p);
delete _p;
if (_p !is null) delete _p;
_p = null;
}
bool isEmpty() const
Expand Down

0 comments on commit 1b85a4a

Please sign in to comment.