Make file read-only once assigned to a PropertyFileIncluded instance

This commit is contained in:
wmayer
2013-05-07 22:42:58 +02:00
parent ab8a8cd371
commit 9a9510d9e3
5 changed files with 155 additions and 43 deletions

View File

@@ -607,7 +607,7 @@ Document::~Document()
// Remark: The API of Py::Object has been changed to set whether the wrapper owns the passed
// Python object or not. In the constructor we forced the wrapper to own the object so we need
// not to dec'ref the Python object any more.
// But we must still invalidate the Python object because it need not to be
// But we must still invalidate the Python object because it doesn't need to be
// destructed right now because the interpreter can own several references to it.
Base::PyObjectBase* doc = (Base::PyObjectBase*)DocumentPythonObject.ptr();
// Call before decrementing the reference counter, otherwise a heap error can occur