From c408dec596629ebfd545bfde04153617173e009a Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 8 Dec 2011 10:28:51 +0100 Subject: [PATCH] Fixed memory release but. Isn't the role of UBDocumentPublisher to release the UBDocumentProxy --- src/adaptors/publishing/UBDocumentPublisher.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/adaptors/publishing/UBDocumentPublisher.cpp b/src/adaptors/publishing/UBDocumentPublisher.cpp index 261f563b..02f8d900 100644 --- a/src/adaptors/publishing/UBDocumentPublisher.cpp +++ b/src/adaptors/publishing/UBDocumentPublisher.cpp @@ -63,11 +63,6 @@ UBDocumentPublisher::UBDocumentPublisher(UBDocumentProxy* pDocument, QObject *pa UBDocumentPublisher::~UBDocumentPublisher() { - if(mSourceDocument){ - delete mSourceDocument; - mSourceDocument = NULL; - } - if(mPublishingDocument){ delete mPublishingDocument; mPublishingDocument = NULL;