[poppler] 2 commits - poppler/UTF.cc

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


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

New commits:
commit 4a0bd6fdb2e9e3c589e1bdb282e7c2bfca8567b1
Merge: bbd27c9 17a16a2
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Jun 9 12:06:10 2013 +0200

    Merge remote-tracking branch 'origin/poppler-0.22'

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