MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / ~CCecPythonCallbacks

Method ~CCecPythonCallbacks

src/libcec/SwigHelper.h:98–105  ·  view source on GitHub ↗

* Unreferences all python callbacks, and deletes the callbacks */

Source from the content-addressed store, hash-verified

96 * Unreferences all python callbacks, and deletes the callbacks
97 */
98 virtual ~CCecPythonCallbacks(void)
99 {
100 for (size_t ptr = 0; ptr < NB_PYTHON_CB; ++ptr)
101 if (m_callbacks[ptr])
102 Py_XDECREF(m_callbacks[ptr]);
103 delete m_configuration->callbacks;
104 m_configuration->callbacks = nullptr;
105 }
106
107 /**
108 * Call a python callback (if set)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected