From 32e07f418b48d42856f0e8c08b26ee3bd2d8b321 Mon Sep 17 00:00:00 2001
From: Ezo <ezo.dev@gmail.com>
Date: Mon, 18 Nov 2013 20:23:13 +0000
Subject: [PATCH] Added virtual destructor to DoublyLinkedListImpl,
PackageSymlink and PackageDirectory
---
headers/private/kernel/util/DoublyLinkedList.h | 3 ++-
src/system/boot/loader/file_systems/packagefs/packagefs.cpp | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/headers/private/kernel/util/DoublyLinkedList.h b/headers/private/kernel/util/DoublyLinkedList.h
index 2321689..a09cfcc 100644
a
|
b
|
public:
|
41 | 41 | { return &fDoublyLinkedListLink; } |
42 | 42 | const DLL_Link* GetDoublyLinkedListLink() const |
43 | 43 | { return &fDoublyLinkedListLink; } |
44 | | |
| 44 | virtual ~DoublyLinkedListLinkImpl() {} |
| 45 | |
45 | 46 | private: |
46 | 47 | DLL_Link fDoublyLinkedListLink; |
47 | 48 | }; |
diff --git a/src/system/boot/loader/file_systems/packagefs/packagefs.cpp b/src/system/boot/loader/file_systems/packagefs/packagefs.cpp
index 1ab70be..33eb726 100644
a
|
b
|
struct PackageSymlink : PackageNode {
|
163 | 163 | { |
164 | 164 | } |
165 | 165 | |
166 | | ~PackageSymlink() |
| 166 | virtual ~PackageSymlink() |
167 | 167 | { |
168 | 168 | free(fPath); |
169 | 169 | } |
… |
… |
struct PackageDirectory : PackageNode {
|
194 | 194 | { |
195 | 195 | } |
196 | 196 | |
197 | | ~PackageDirectory() |
| 197 | virtual ~PackageDirectory() |
198 | 198 | { |
199 | 199 | while (PackageNode* node = fEntries.RemoveHead()) |
200 | 200 | delete node; |