Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8b419e43
"...text-generation-inference.git" did not exist on "8ec57558cd5b7b2ad3eaacdd6295a3db0c9092d0"
Commit
8b419e43
authored
Mar 13, 2018
by
Davis King
Browse files
Fixed memory leak in java swig array binding tool.
parent
65b62c1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dlib/java/java_array.h
dlib/java/java_array.h
+5
-1
No files found.
dlib/java/java_array.h
View file @
8b419e43
...
...
@@ -369,7 +369,11 @@ public:
operator
java_type
()
const
{
return
ref
;}
void
swap
(
array
&
item
)
{
std
::
swap
(
ref
,
item
.
ref
);
}
void
swap
(
array
&
item
)
{
std
::
swap
(
ref
,
item
.
ref
);
std
::
swap
(
is_global_ref
,
item
.
is_global_ref
);
}
private:
java_type
ref
=
NULL
;
...
...
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