KPath.Adopt() fixed incorrect path/buffer length.

* The other object was left in an inconsistent state.
* This lets the unit test for Adopt() pass.
This commit is contained in:
Axel Dörfler 2017-04-29 19:03:16 +02:00
parent 663b800476
commit 4be518758d
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ KPath::Adopt(KPath& other)
fBufferSize = other.fBufferSize;
other.fBuffer = NULL;
other.fBufferSize = 0;
other.fPathLength = 0;
}