From c7e570eb7f3ed069bbbfdaf1bf3f381f632ba711 Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 10 Aug 2003 10:00:16 +0000 Subject: [PATCH] SetSettings turns over ownership to the BMessage so we null out our field to ensure we do not accidently use it later git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4265 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/stylededit/StyledEditWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index c8e2b06242..895f362e81 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -1119,6 +1119,7 @@ StyledEditWindow::PageSetup(const char *documentname) if (fPrintSettings != NULL) { printJob.SetSettings(fPrintSettings); + fPrintSettings = NULL; } result = printJob.ConfigPage(); @@ -1144,6 +1145,7 @@ StyledEditWindow::Print(const char *documentname) BPrintJob printJob(documentname); printJob.SetSettings(fPrintSettings); + fPrintSettings = NULL; result = printJob.ConfigJob(); if (result != B_OK) { return;