[Streams API] Collecting a ReadableStreamReader should not unlock its stream
[WebKit-https.git] / Source / WebCore / Modules / streams / ReadableStreamReader.cpp
index 6f39989940aadc82186e2d555715e3d3677e2a6c..209cd5bc96c608adad81222ac2a729126cffe8af 100644 (file)
@@ -57,7 +57,7 @@ ReadableStreamReader::~ReadableStreamReader()
     readableStreamReaderCounter.decrement();
 #endif
     if (m_stream) {
-        m_stream->release();
+        m_stream->releaseButKeepLocked();
         m_stream = nullptr;
     }
 }