Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
8c7d9bbd
Commit
8c7d9bbd
authored
13 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
EXP-663 : Fix memory leak introduced in precincts handling
parent
b77a7b47
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llkdu/llimagej2ckdu.cpp
+11
-5
11 additions, 5 deletions
indra/llkdu/llimagej2ckdu.cpp
with
11 additions
and
5 deletions
indra/llkdu/llimagej2ckdu.cpp
+
11
−
5
View file @
8c7d9bbd
...
...
@@ -361,17 +361,23 @@ BOOL LLImageJ2CKDU::initDecode(LLImageJ2C &base, LLImageRaw &raw_image, F32 deco
}
int
discard
=
(
discard_level
!=
-
1
?
discard_level
:
base
.
getRawDiscardLevel
());
// Apply loading restrictions
mCodeStreamp
->
apply_input_restrictions
(
first_channel
,
max_channel_count
,
discard
,
0
,
region_kdu
);
// Clean-up
if
(
region_kdu
)
{
delete
region_kdu
;
region_kdu
=
NULL
;
}
// Resize raw_image according to the image to be decoded
kdu_dims
dims
;
mCodeStreamp
->
get_dims
(
0
,
dims
);
S32
channels
=
base
.
getComponents
()
-
first_channel
;
if
(
channels
>
max_channel_count
)
{
channels
=
max_channel_count
;
}
channels
=
llmin
(
channels
,
max_channel_count
);
raw_image
.
resize
(
dims
.
size
.
x
,
dims
.
size
.
y
,
channels
);
// llinfos << "Resizing raw_image to " << dims.size.x << ":" << dims.size.y << llendl;
// llinfos << "Resizing to " << dims.size.x << ":" << dims.size.y << llendl;
if
(
!
mTileIndicesp
)
{
mTileIndicesp
=
new
kdu_dims
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment