Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8c4f886f
Commit
8c4f886f
authored
6 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: re-throw allocation exception if there is no fallback
parent
28cb714a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
matrix.cpp
modules/core/src/matrix.cpp
+4
-3
No files found.
modules/core/src/matrix.cpp
View file @
8c4f886f
...
...
@@ -355,14 +355,15 @@ void Mat::create(int d, const int* _sizes, int _type)
#endif
if
(
!
a
)
a
=
a0
;
CV_TRY
try
{
u
=
a
->
allocate
(
dims
,
size
,
_type
,
0
,
step
.
p
,
0
,
USAGE_DEFAULT
);
CV_Assert
(
u
!=
0
);
}
CV_CATCH_ALL
catch
(...)
{
if
(
a
!=
a0
)
if
(
a
==
a0
)
throw
;
u
=
a0
->
allocate
(
dims
,
size
,
_type
,
0
,
step
.
p
,
0
,
USAGE_DEFAULT
);
CV_Assert
(
u
!=
0
);
}
...
...
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