plugins: Replace geany_plugin_register() pdata with a separate API function
commitf2579141bb4188d4fc97eee494ba36e809661ddf
authorThomas Martitz <kugel@rockbox.org>
Sun, 23 Aug 2015 13:23:24 +0000 (23 15:23 +0200)
committerThomas Martitz <kugel@rockbox.org>
Sun, 23 Aug 2015 13:23:24 +0000 (23 15:23 +0200)
tree1716daa85cd8bc06b9a8c417a66fd92d49819434
parentbabf0083353b1d3501fee439b6228c2fbe84cc82
plugins: Replace geany_plugin_register() pdata with a separate API function

The API function adds a free_func parameter, and can also be called
after geany_plugin_register(), i.e. in the plugin's init() callback. This
fixes a by-design memory leak and gives greater flexibility.
src/plugindata.h
src/pluginprivate.h
src/plugins.c
src/pluginutils.c