Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
seo young Joung
opencv
Commits
b7ffed7b
Commit
b7ffed7b
authored
11 years ago
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
11 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #2279 from alalek:fix_memory_leak_getumat
parents
42ac3123
83a2b566
4.x
3.4
5.x
master
next
4.5.5
4.5.4
4.5.3
4.5.3-openvino
4.5.3-openvino-2021.4.2
4.5.3-openvino-2021.4.1
4.5.2
4.5.2-openvino
4.5.1
4.5.1-openvino
4.5.0
4.5.0-openvino
4.4.0
4.4.0-openvino
4.3.0
4.3.0-openvino
4.3.0-openvino-2020.3.0
4.2.0
4.2.0-openvino
4.1.2
4.1.2-openvino
4.1.1
4.1.1-openvino
4.1.0
4.1.0-openvino
4.0.1
4.0.1-openvino
4.0.0
4.0.0-rc
4.0.0-openvino
4.0.0-beta
4.0.0-alpha
3.4.17
3.4.16
3.4.15
3.4.14
3.4.13
3.4.12
3.4.11
3.4.10
3.4.9
3.4.8
3.4.7
3.4.6
3.4.5
3.4.4
3.4.3
3.4.3-openvino
3.4.2
3.4.2-openvino
3.4.1
3.4.1-cvsdk
3.4.0
3.4.0-rc
3.3.1
3.3.1-cvsdk
3.3.0
3.3.0-rc
3.3.0-cvsdk
3.2.0
3.2.0-rc
3.1.0
3.0.0
3.0.0-rc1
3.0.0-beta
3.0.0-alpha
3.0-ocl-tp2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/core/include/opencv2/core/mat.inl.hpp
+2
-4
modules/core/include/opencv2/core/mat.inl.hpp
modules/core/src/matrix.cpp
+0
-1
modules/core/src/matrix.cpp
with
2 additions
and
5 deletions
+2
-5
modules/core/include/opencv2/core/mat.inl.hpp
View file @
b7ffed7b
...
...
@@ -3112,8 +3112,7 @@ UMat::UMat(const UMat& m)
:
flags
(
m
.
flags
),
dims
(
m
.
dims
),
rows
(
m
.
rows
),
cols
(
m
.
cols
),
allocator
(
m
.
allocator
),
u
(
m
.
u
),
offset
(
m
.
offset
),
size
(
&
rows
)
{
if
(
u
)
CV_XADD
(
&
(
u
->
urefcount
),
1
);
addref
();
if
(
m
.
dims
<=
2
)
{
step
[
0
]
=
m
.
step
[
0
];
step
[
1
]
=
m
.
step
[
1
];
...
...
@@ -3148,8 +3147,7 @@ UMat& UMat::operator = (const UMat& m)
{
if
(
this
!=
&
m
)
{
if
(
m
.
u
)
CV_XADD
(
&
(
m
.
u
->
urefcount
),
1
);
const_cast
<
UMat
&>
(
m
).
addref
();
release
();
flags
=
m
.
flags
;
if
(
dims
<=
2
&&
m
.
dims
<=
2
)
...
...
This diff is collapsed.
Click to expand it.
modules/core/src/matrix.cpp
View file @
b7ffed7b
...
...
@@ -199,7 +199,6 @@ public:
bool
allocate
(
UMatData
*
u
,
int
/*accessFlags*/
)
const
{
if
(
!
u
)
return
false
;
CV_XADD
(
&
u
->
urefcount
,
1
);
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help