Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Masamichi Hosoda
poppler
Commits
998b1523
Commit
998b1523
authored
Mar 15, 2008
by
Carlos Garcia Campos
Committed by
Albert Astals Cid
Mar 15, 2008
Browse files
Some free
parent
c65a66a8
Changes
1
Show whitespace changes
Inline
Side-by-side
poppler/OptionalContent.cc
View file @
998b1523
...
@@ -46,6 +46,7 @@ OCGs::OCGs(Object *ocgObject, XRef *xref) :
...
@@ -46,6 +46,7 @@ OCGs::OCGs(Object *ocgObject, XRef *xref) :
Object
ocg
;
Object
ocg
;
ocgList
.
arrayGet
(
i
,
&
ocg
);
ocgList
.
arrayGet
(
i
,
&
ocg
);
if
(
!
ocg
.
isDict
())
{
if
(
!
ocg
.
isDict
())
{
ocg
.
free
();
break
;
break
;
}
}
OptionalContentGroup
*
thisOptionalContentGroup
=
new
OptionalContentGroup
(
ocg
.
getDict
(),
xref
);
OptionalContentGroup
*
thisOptionalContentGroup
=
new
OptionalContentGroup
(
ocg
.
getDict
(),
xref
);
...
@@ -82,6 +83,7 @@ OCGs::OCGs(Object *ocgObject, XRef *xref) :
...
@@ -82,6 +83,7 @@ OCGs::OCGs(Object *ocgObject, XRef *xref) :
on
.
arrayGetNF
(
i
,
&
reference
);
on
.
arrayGetNF
(
i
,
&
reference
);
if
(
!
reference
.
isRef
())
{
if
(
!
reference
.
isRef
())
{
// there can be null entries
// there can be null entries
reference
.
free
();
break
;
break
;
}
}
OptionalContentGroup
*
group
=
findOcgByRef
(
reference
.
getRef
()
);
OptionalContentGroup
*
group
=
findOcgByRef
(
reference
.
getRef
()
);
...
@@ -104,6 +106,7 @@ OCGs::OCGs(Object *ocgObject, XRef *xref) :
...
@@ -104,6 +106,7 @@ OCGs::OCGs(Object *ocgObject, XRef *xref) :
off
.
arrayGetNF
(
i
,
&
reference
);
off
.
arrayGetNF
(
i
,
&
reference
);
if
(
!
reference
.
isRef
())
{
if
(
!
reference
.
isRef
())
{
// there can be null entries
// there can be null entries
reference
.
free
();
break
;
break
;
}
}
OptionalContentGroup
*
group
=
findOcgByRef
(
reference
.
getRef
()
);
OptionalContentGroup
*
group
=
findOcgByRef
(
reference
.
getRef
()
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment