Commit Graph

2 Commits

Author SHA1 Message Date
0d17115d2c Fix a potential uninitialized argument in e-plugin-python.c.
if (PyCallable_Check (priv->pClass))
		pInstance = PyObject_CallObject (priv->pClass, NULL);

	pValue = PyObject_CallMethod (pInstance, (gchar *) name, NULL);

'pInstance' may be uninitialzed in call to PyObject_CallMethod().

Found by the Clang Static Analyzer.
2010-01-15 21:51:35 -05:00
32f545cdf0 Simplify EPlugin loading at startup.
- Require all EPlugin and EPluginHook subtypes be registered before
  loading plugins.  This drastically simplifies the EPlugin/EPluginHook
  negotiation.

- Turn most EPluginHook subtypes into GTypeModules and register their
  types from an e_module_load() function (does not include shell hooks).

- Convert EPluginLib and the Mono and Python bindings to GTypeModules
  and register their types from an e_module_load() function, and kill
  EPluginTypeHook.
2009-08-29 17:23:20 -04:00