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
This commit is contained in:
shatty 2003-08-10 10:00:16 +00:00
parent 180efabe26
commit c7e570eb7f

View File

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