Commit 3764e14b authored by Oleg Korshul's avatar Oleg Korshul

memory leak

parent 7b896397
......@@ -390,12 +390,16 @@ namespace NSOnlineOfficeBinToPdf
case Aggplus::DashStyleCustom:
{
int nCountDash = ReadInt(current, curindex);
if (0 < nCountDash)
{
double* pDash = new double[nCountDash];
for (int nDash = 0; nDash < nCountDash; ++nDash)
{
pDash[nDash] = ReadInt(current, curindex) / 100000.0;
}
pPdf->PenDashPattern(pDash, nCountDash);
delete[] pDash;
}
}
default:
pPdf->put_PenDashStyle(nDashType);
......
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