Skip to content

Commit

Permalink
Part: GeometryExtensions
Browse files Browse the repository at this point in the history
========================

fixes #4087

Missing "break" in loop after finding the extension was causing segfault because of null pointer access, as the unique pointer had been std:move-d when found and was thus no longer valid.
  • Loading branch information
abdullahtahiriyo committed Mar 6, 2020
1 parent 26e88f2 commit b748cc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Part/App/Geometry.cpp
Expand Up @@ -316,6 +316,7 @@ void Geometry::setExtension(std::unique_ptr<GeometryExtension> && geo)
ext->getName() == geo->getName()){
ext = std::move(geo);
hasext = true;
break;
}
}

Expand Down

0 comments on commit b748cc6

Please sign in to comment.