ソースを参照

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;
   };