~inkscape-pybind/inkscape/pybind

Viewing all changes in revision 9823.

  • Committer: Thinker Li
  • Date: 2011-09-27 02:07:31 UTC
  • Revision ID: thinker@codemud.net-20110927020731-epty1jmlt9rj7fwh
Call release functions of ancestor before releasing resources.

Release function of SPObject class would emit signals when releasing an
instance.  It means the object maybe referenced by signal handlers triggered
by release function.  It would cause segmentation fault while some
resources are released before emit signals.

This patch is to call release function of parents before releasing any
resource to make sure signal handlers work fine.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: