Commit 500e3798 authored by Stephan Kulow's avatar Stephan Kulow

first use, _then_ delete (CID 2240)

svn path=/branches/work/kde4/playground/graphics/okular/; revision=544232
parent 6535d966
......@@ -1274,7 +1274,6 @@ void KPDFDocument::sendGeneratorRequest()
else if ( (long)r->width * (long)r->height > 20000000L )
{
d->pixmapRequestsStack.pop_back();
delete r;
if ( !d->warnedOutOfMemory )
{
kWarning() << "Running out of memory on page " << r->pageNumber
......@@ -1282,6 +1281,7 @@ void KPDFDocument::sendGeneratorRequest()
kWarning() << "this message will be reported only once." << endl;
d->warnedOutOfMemory = true;
}
delete r;
}
else if (!r)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment