Fixed memory issues caused by stream frames not being disposed.