Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
836cb6ca
Commit
836cb6ca
authored
Jul 25, 2009
by
Peter Eastman
Browse files
Fixed a memory leak
parent
95fa837c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
platforms/reference/src/ReferenceFloatStreamImpl.cpp
platforms/reference/src/ReferenceFloatStreamImpl.cpp
+3
-1
No files found.
platforms/reference/src/ReferenceFloatStreamImpl.cpp
View file @
836cb6ca
...
@@ -72,7 +72,9 @@ ReferenceFloatStreamImpl::ReferenceFloatStreamImpl(std::string name, int size, S
...
@@ -72,7 +72,9 @@ ReferenceFloatStreamImpl::ReferenceFloatStreamImpl(std::string name, int size, S
}
}
ReferenceFloatStreamImpl
::~
ReferenceFloatStreamImpl
()
{
ReferenceFloatStreamImpl
::~
ReferenceFloatStreamImpl
()
{
delete
[]
data
;
for
(
int
i
=
0
;
i
<
getSize
();
i
++
)
delete
[]
data
[
i
];
delete
[]
data
;
}
}
void
ReferenceFloatStreamImpl
::
loadFromArray
(
const
void
*
array
)
{
void
ReferenceFloatStreamImpl
::
loadFromArray
(
const
void
*
array
)
{
...
...
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