30 lines
807 B
Diff
30 lines
807 B
Diff
From 36c093cb21d9dab3aae35f64d44e5883eefe020e Mon Sep 17 00:00:00 2001
|
|
From: Laurent Carlier <lordheavym@gmail.com>
|
|
Date: Thu, 23 Jan 2020 18:02:44 +0100
|
|
Subject: [PATCH] Fix segfault with poppler>0.83
|
|
|
|
[GB.PDF]
|
|
* BUG: Fix segfault with poppler > 0.83
|
|
|
|
Signed-off-by: Laurent Carlier <lordheavym@gmail.com>
|
|
---
|
|
gb.pdf/src/main.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/gb.pdf/src/main.cpp b/gb.pdf/src/main.cpp
|
|
index 2d7f02ca0..62923cc34 100644
|
|
--- a/gb.pdf/src/main.cpp
|
|
+++ b/gb.pdf/src/main.cpp
|
|
@@ -56,7 +56,7 @@ int EXPORT GB_INIT(void)
|
|
if (!globalParams)
|
|
{
|
|
#if POPPLER_VERSION_0_83
|
|
- globalParams = std::unique_ptr<GlobalParams>();
|
|
+ globalParams = std::unique_ptr<GlobalParams>(new GlobalParams());
|
|
#else
|
|
globalParams = new GlobalParams();
|
|
#endif
|
|
--
|
|
2.25.0
|
|
|