소스 검색

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