1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

AudioServer: Turn ASMixer into a CObject

It was wrongly inheriting from RefCounted<AudioServer> without using
reference counting. Let's just make it a CObject instead.
This commit is contained in:
Andreas Kling 2019-08-18 12:56:36 +02:00
parent 8aa3b74f80
commit d5352b87b7
2 changed files with 8 additions and 2 deletions

View file

@ -48,9 +48,11 @@ private:
WeakPtr<ASClientConnection> m_client;
};
class ASMixer : public RefCounted<ASMixer> {
class ASMixer : public CObject {
C_OBJECT(ASMixer)
public:
ASMixer();
virtual ~ASMixer() override;
NonnullRefPtr<ASBufferQueue> create_queue(ASClientConnection&);