[#202] object: Reset marshal data on CutPayload
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
aa41f71dcc
commit
a86170f53a
1 changed files with 1 additions and 0 deletions
|
@ -571,6 +571,7 @@ func (o *Object) CutPayload() *Object {
|
||||||
ov2 := new(object.Object)
|
ov2 := new(object.Object)
|
||||||
*ov2 = *(*object.Object)(o)
|
*ov2 = *(*object.Object)(o)
|
||||||
ov2.SetPayload(nil)
|
ov2.SetPayload(nil)
|
||||||
|
ov2.SetMarshalData(nil)
|
||||||
|
|
||||||
return (*Object)(ov2)
|
return (*Object)(ov2)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue