add NsUnknown::Dispose
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 03 May 2007 11:01:26 +0200
changeset 510 0a7bc08999fa
parent 509 2338d9fddbc0
child 511 1a379b68cabc
add NsUnknown::Dispose
src/core/ns-unknown.cc
src/core/ns-unknown.h
--- a/src/core/ns-unknown.cc	Thu May 03 10:58:08 2007 +0200
+++ b/src/core/ns-unknown.cc	Thu May 03 11:01:26 2007 +0200
@@ -136,6 +136,12 @@
   m_impl->Unref ();
 }
 
+void 
+NsUnknown::Dispose (void)
+{
+  // we do not do anything by default.
+}
+
 void
 NsUnknown::RefInternal (void)
 {
--- a/src/core/ns-unknown.h	Thu May 03 10:58:08 2007 +0200
+++ b/src/core/ns-unknown.h	Thu May 03 11:01:26 2007 +0200
@@ -58,6 +58,8 @@
    * will be found by the same reference count.
    */
   void AddInterface (NsUnknown *interface);
+
+  virtual void Dispose (void);
 protected:
   /**
    * \param iid the Interface Id of the interface defined by a direct subclass