Use gdbpy_ref in instantiate_pretty_printer
authorTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:33:36 +0000 (09:33 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:33:42 +0000 (09:33 -0700)
commit1345dee2805220742355b331934c2cdedf7669c6
treee35f362c3cc938b7ea21f204393ae1f02a78456c
parent446d2c032d387a75020ecb41b5d89dd93158beb0
Use gdbpy_ref in instantiate_pretty_printer

This changes instantiate_pretty_printer to use gdbpy_ref, removing a
call to Py_DECREF.

gdb/ChangeLog
2020-12-11  Tom Tromey  <tom@tromey.com>

* varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
gdb/ChangeLog
gdb/varobj.c