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