Skip to content

Commit

Permalink
Allow the substruct library to be deleted when refcount goes to 0 (rd…
Browse files Browse the repository at this point in the history
…kit#7462)

* Allow the substruct library to be deleted when refcount goes to 0

* Remove whitespace changes

* Update Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

---------

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
  • Loading branch information
bp-kelley and greglandrum committed May 28, 2024
1 parent 2bc3a2d commit 3a4a744
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,7 @@ struct substructlibrary_wrapper {
python::init<>(python::args("self")))
.def(python::init<unsigned int>(python::args("self", "numBits")));

python::class_<SubstructLibraryWrap, SubstructLibraryWrap *,
const SubstructLibraryWrap *>(
python::class_<SubstructLibraryWrap, boost::shared_ptr<SubstructLibraryWrap>>(
"SubstructLibrary", SubstructLibraryDoc,
python::init<>(python::args("self")))
.def(python::init<boost::shared_ptr<MolHolderBase>>(
Expand Down

0 comments on commit 3a4a744

Please sign in to comment.