OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <limits.h> | 5 #include <limits.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 } | 832 } |
833 } | 833 } |
834 } | 834 } |
835 RenderPdf(filename, file_contents.get(), file_length, options, events); | 835 RenderPdf(filename, file_contents.get(), file_length, options, events); |
836 } | 836 } |
837 | 837 |
838 FPDF_DestroyLibrary(); | 838 FPDF_DestroyLibrary(); |
839 #ifdef PDF_ENABLE_V8 | 839 #ifdef PDF_ENABLE_V8 |
840 v8::V8::ShutdownPlatform(); | 840 v8::V8::ShutdownPlatform(); |
841 delete platform; | 841 delete platform; |
| 842 |
| 843 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 844 free(const_cast<char*>(natives.data)); |
| 845 free(const_cast<char*>(snapshot.data)); |
| 846 #endif // V8_USE_EXTERNAL_STARTUP_DATA |
842 #endif // PDF_ENABLE_V8 | 847 #endif // PDF_ENABLE_V8 |
843 | 848 |
844 return 0; | 849 return 0; |
845 } | 850 } |
OLD | NEW |