Skip to content
Snippets Groups Projects
Commit 76b25fe7 authored by Johannes Junggeburth's avatar Johannes Junggeburth :dog2:
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 52942c2e
No related branches found
No related tags found
1 merge request!290GeoMaterial - Remove GeoElement ref memory leak
Pipeline #6964656 failed
...@@ -229,7 +229,6 @@ void GeoMaterial::add (const GeoElement* element, double fraction) ...@@ -229,7 +229,6 @@ void GeoMaterial::add (const GeoElement* element, double fraction)
if (e==m_elements.end()) { if (e==m_elements.end()) {
m_elements.push_back (elementPtr); m_elements.push_back (elementPtr);
m_fractions.push_back (fraction); m_fractions.push_back (fraction);
element->ref ();
} }
else { else {
int n = e-m_elements.begin(); int n = e-m_elements.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment