From fdc02603ebd14076de0cc506421543d5ff44fe23 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 22 Sep 2017 16:07:27 -0700 Subject: [PATCH] PGEditorDialogAdapter.GetEditorDialog is a factory function, mark it as such so the ownership of the returned value is handled correctly. --- etg/propgridproperty.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etg/propgridproperty.py b/etg/propgridproperty.py index 8b97f191..cf27cd50 100644 --- a/etg/propgridproperty.py +++ b/etg/propgridproperty.py @@ -114,6 +114,7 @@ def run(): doc="Alias for :meth:`SetClientData`", body="self.SetClientData(n, data)") + c.find('GetEditorDialog').factory = True c = module.find('wxPGChoicesData')