Bug 1360560 - Add destructor to nsRemoteClient, r?jhorak" draft
authorMartin Stransky <stransky@redhat.com>
Thu, 02 Nov 2017 16:23:06 +0100
changeset 695546 74f218980e48de6832a70563dcc33d85f0e33bb0
parent 695545 7a7a7dc045e7bc045f40f98625e459ff5e5d5d5b
child 695547 41f4d3e7997484ee6db32b735ebfc8a8e71cc37a
push id88463
push userstransky@redhat.com
push dateThu, 09 Nov 2017 12:17:48 +0000
reviewersjhorak
bugs1360560
milestone58.0a1
Bug 1360560 - Add destructor to nsRemoteClient, r?jhorak" Create nsRemoteClient pointer as a base class pointer to X11/DBus implementations. MozReview-Commit-ID: 3CpkDey6rLU
widget/xremoteclient/nsRemoteClient.h
--- a/widget/xremoteclient/nsRemoteClient.h
+++ b/widget/xremoteclient/nsRemoteClient.h
@@ -12,16 +12,18 @@
 
 /**
  * Pure-virtual common base class for remoting implementations.
  */
 
 class nsRemoteClient
 {
 public:
+  virtual ~nsRemoteClient() {};
+
   /**
    * Initializes the client
    */
   virtual nsresult Init() = 0;
 
   /**
    * Send a complete command line to a running instance.
    *