diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp index 176d55ffdda..baaeacaf182 100644 --- a/core/io/stream_peer.cpp +++ b/core/io/stream_peer.cpp @@ -544,6 +544,7 @@ Ref StreamPeerBuffer::duplicate() const { Ref spb; spb.instance(); spb->data=data; + return spb; }