[poppler] Branch 'poppler-0.22' - poppler/UTF.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Jun 9 03:05:10 PDT 2013


 poppler/UTF.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 17a16a2731b1110a12c7163c139d85bccee04492
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Jun 9 12:04:40 2013 +0200

    Fix mismatched free/delete
    
    Bug #65553

diff --git a/poppler/UTF.cc b/poppler/UTF.cc
index 42c7836..46007b7 100644
--- a/poppler/UTF.cc
+++ b/poppler/UTF.cc
@@ -101,7 +101,7 @@ int TextStringToUCS4(GooString *textStr, Unicode **ucs4)
         utf16[i] = (s[2 + i*2] & 0xff) << 8 | (s[3 + i*2] & 0xff);
       }
       len = UTF16toUCS4(utf16, len, &u);
-      delete utf16;
+      delete[] utf16;
     } else {
       u = NULL;
     }


More information about the poppler mailing list