Преглед на файлове

Fixed possible memory leak (missing virtual desctructors).

Sascha Zelzer преди 13 години
родител
ревизия
8b7c0e1be5
променени са 2 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 2 0
      Libs/PluginFramework/service/log/ctkLogEntry.h
  2. 1 0
      Plugins/org.commontk.eventadmin/tasks/ctkEASyncDeliverTasks_p.h

+ 2 - 0
Libs/PluginFramework/service/log/ctkLogEntry.h

@@ -48,6 +48,8 @@
  */
 struct ctkLogEntry
 {
+  virtual ~ctkLogEntry() {}
+
   /**
    * Returns the plugin that created this <code>ctkLogEntry</code> object.
    *

+ 1 - 0
Plugins/org.commontk.eventadmin/tasks/ctkEASyncDeliverTasks_p.h

@@ -77,6 +77,7 @@ private:
    */
   struct Matcher
   {
+    virtual ~Matcher() {}
     virtual bool match(const QString& className) const = 0;
   };