//
// Outline.cc
//
-// Copyright 2002 Glyph & Cog, LLC
+// Copyright 2002-2003 Glyph & Cog, LLC
//
//========================================================================
//------------------------------------------------------------------------
OutlineItem::OutlineItem(Dict *dict, XRef *xrefA) {
- Object obj1;
+ Object obj1, obj2;
GString *s;
int i;
if (!dict->lookup("Dest", &obj1)->isNull()) {
action = LinkAction::parseDest(&obj1);
} else {
- obj1.free();
- if (dict->lookup("A", &obj1)) {
- action = LinkAction::parseAction(&obj1);
- }
+ obj1.free();
+ dict->lookup("A", &obj1);
+ if (!obj1.isNull())
+ action = LinkAction::parseAction(&obj1);
}
obj1.free();
OutlineItem::~OutlineItem() {
close();
if (title) {
- delete title;
+ gfree(title);
}
if (action) {
delete action;