QGIS/python/core/auto_generated
Even Rouault e55107f85c QgsDataItem::createChildren(): fix SIP generated C++ method
The SIP_FACTORY annotation didn't do the job for a Python implementation
of createChildren(). We must write a custom VirtualCatcherCode to make
sure that if the returned QgsDataItem elements are Python objects they
aren't killed too early.

Fixes the new added test, which uses to crash before the fix,
and corresponds to the use case of a plugin defining its own data items.

Has been checked not to cause memory leaks.

The change of SIP_FACTORY to SIP_TRANSFERBACK is to avoid a memory
leak when Python calls a C++ createChildren() implementation. Was found
by making test_provider_ogr.py::testDataItems() loop on its call to
createChildren()
2020-11-16 08:57:42 +10:00
..
2020-07-21 10:13:45 +10:00
2020-10-09 11:20:09 +10:00
2020-10-09 11:20:09 +10:00
2020-04-30 06:52:22 +02:00
2020-09-15 12:23:30 +02:00
2020-11-05 20:16:48 +10:00
2020-06-11 13:29:59 +10:00
2020-10-09 11:20:09 +10:00
2020-06-11 13:29:59 +10:00
2020-10-22 20:42:14 +02:00
2020-10-09 11:20:09 +10:00
2020-07-21 12:51:48 +02:00
2020-07-18 13:01:18 +07:00
2020-06-19 08:47:23 +10:00
2020-06-11 13:29:59 +10:00
Dox
2020-08-10 08:09:11 +10:00
2020-07-21 12:51:48 +02:00