Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
FPC
Lazarus
Lazarus
Commits
042ab482
Commit
042ab482
authored
Dec 22, 2018
by
Željan Rikalo
🏊🏼
Browse files
LCL: TCustomImageList fix for memory leak. Patch by Ondrej Pokorny. issue
#34708
git-svn-id: trunk@59892 -
parent
6a64348c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lcl/include/imglist.inc
View file @
042ab482
...
...
@@ -326,9 +326,9 @@ begin
if
n
<>
0
then
Inc
(
ACount
,
FImageList
.
FAllocBy
-
n
);
SetLength
(
FData
,
ACount
*
FWidth
*
FHeight
*
SizeOf
(
FData
[
0
])
);
SetLength
(
FData
,
ACount
*
FWidth
*
FHeight
);
Inc
(
FAllocCount
,
ACount
)
;
FAllocCount
:=
ACount
;
end
;
procedure
TCustomImageListResolution
.
CheckIndex
(
AIndex
:
Integer
;
...
...
@@ -1461,7 +1461,7 @@ begin
ToR
.
AllocData
(
ToR
.
FCount
);
if
ToR
.
FCount
>
0
then
begin
DataSize
:=
ToR
.
FWidth
*
ToR
.
FHeight
*
SizeOf
(
FData
[
0
]);
DataSize
:=
ToR
.
FWidth
*
ToR
.
FHeight
*
SizeOf
(
ToR
.
FData
[
0
]);
System
.
Move
(
FromR
.
FData
[
0
],
ToR
.
FData
[
0
],
ToR
.
FCount
*
DataSize
);
end
;
end
;
...
...
FPC Admin account
@fpc_admin
mentioned in issue
#34708 (closed)
·
Jul 29, 2021
mentioned in issue
#34708 (closed)
mentioned in issue #34708
Toggle commit list
Write
Preview
Supports
Markdown
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