76f8c5
From de0c0b8324e776f0b851485e0fc9622fc35695b7 Mon Sep 17 00:00:00 2001
76f8c5
From: Albert Astals Cid <aacid@kde.org>
76f8c5
Date: Sat, 29 Dec 2018 01:25:17 +0100
76f8c5
Subject: [PATCH] FileSpec: Move the fileSpec.dictLookup call inside
76f8c5
 fileSpec.isDict if
76f8c5
76f8c5
Fixes #704
76f8c5
---
76f8c5
 poppler/FileSpec.cc | 9 +++++----
76f8c5
 1 file changed, 5 insertions(+), 4 deletions(-)
76f8c5
76f8c5
diff --git a/poppler/FileSpec.cc b/poppler/FileSpec.cc
76f8c5
index 8a8b9e7e..7c12da63 100644
76f8c5
--- a/poppler/FileSpec.cc
76f8c5
+++ b/poppler/FileSpec.cc
76f8c5
@@ -137,11 +137,11 @@ FileSpec::FileSpec(Object *fileSpecA)
76f8c5
       }
76f8c5
     }
76f8c5
     obj1.free();
76f8c5
-  }
76f8c5
 
76f8c5
-  if (fileSpec.dictLookup("Desc", &obj1)->isString())
76f8c5
-    desc = obj1.getString()->copy();
76f8c5
-  obj1.free();
76f8c5
+    if (fileSpec.dictLookup("Desc", &obj1)->isString())
76f8c5
+      desc = obj1.getString()->copy();
76f8c5
+    obj1.free();
76f8c5
+  }
76f8c5
 }
76f8c5
 
76f8c5
 FileSpec::~FileSpec()
76f8c5
-- 
76f8c5
2.20.1
76f8c5