Przeglądaj źródła

producer_listener: Add virtual destructor to IProducerListener

Several member variables are shared_ptr's to this base class. Even
though producer listeners are still unimplemented, this ensures we
always have consistent deletion behavior once this ends up being used
polymorphically.
Lioncash 3 lat temu
rodzic
commit
25dda06f49

+ 1 - 0
src/core/hle/service/nvflinger/producer_listener.h

@@ -10,6 +10,7 @@ namespace Service::android {
 
 class IProducerListener {
 public:
+    virtual ~IProducerListener() = default;
     virtual void OnBufferReleased() = 0;
 };