From 7b896397dbc8515e0e78ce6a7b0897bfabd32a6e Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Tue, 12 Jul 2016 13:29:47 +0300 Subject: [PATCH] alloc memory error --- PdfWriter/OnlineOfficeBinToPdf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PdfWriter/OnlineOfficeBinToPdf.cpp b/PdfWriter/OnlineOfficeBinToPdf.cpp index 13b8627239..e860e148b7 100644 --- a/PdfWriter/OnlineOfficeBinToPdf.cpp +++ b/PdfWriter/OnlineOfficeBinToPdf.cpp @@ -390,7 +390,7 @@ namespace NSOnlineOfficeBinToPdf case Aggplus::DashStyleCustom: { int nCountDash = ReadInt(current, curindex); - double* pDash = new double(nCountDash); + double* pDash = new double[nCountDash]; for (int nDash = 0; nDash < nCountDash; ++nDash) { pDash[nDash] = ReadInt(current, curindex) / 100000.0;