diff options
author | Jason <jasongross9+bugzilla@gmail.com> | 2012-05-02 19:35:26 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-05-02 19:38:11 +0200 |
commit | e55838b41959acc311e9b00dc390c9816a9afac2 (patch) | |
tree | b38705fcfc2124ac5a37008f5f21867fad775da2 | |
parent | dec873463b06bfe76ff48e36282877e6ac11b59d (diff) |
glib: Use delete[] to free array allocated with new[]
https://bugs.freedesktop.org/show_bug.cgi?id=48447
-rw-r--r-- | glib/poppler-document.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc index c6108d49..a78b5eca 100644 --- a/glib/poppler-document.cc +++ b/glib/poppler-document.cc @@ -192,7 +192,7 @@ poppler_document_new_from_file (const char *uri, length = MultiByteToWideChar(CP_UTF8, 0, filename, -1, filenameW, length); newDoc = new PDFDoc(filenameW, length, password_g, password_g); - delete filenameW; + delete [] filenameW; #else filename_g = new GooString (filename); newDoc = new PDFDoc(filename_g, password_g, password_g); |