It appears that nobody sets QObject parent and PipeWireBaseEncodedStream lacks code to destroy PipeWireProduce objects.