From e3d0514c85703c3a789c62d4386629ab5fc7a3bd Mon Sep 17 00:00:00 2001 From: ksherlock Date: Sun, 30 May 2010 21:58:06 +0000 Subject: [PATCH] git-svn-id: https://profuse.googlecode.com/svn/branches/v2@303 aa027e90-d47c-11dd-86d7-074df07e0730 --- Pascal/FileEntry.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Pascal/FileEntry.cpp b/Pascal/FileEntry.cpp index 590cb25..5bf9bef 100644 --- a/Pascal/FileEntry.cpp +++ b/Pascal/FileEntry.cpp @@ -91,6 +91,13 @@ FileEntry::~FileEntry() void FileEntry::setFileKind(unsigned kind) { _fileKind = kind; + if (_pageSize) + { + delete _pageSize; + _fileSize = 0; + _pageSize = NULL; + } + parent()->writeEntry(this); }