Sorry for the spam, but a related idea (so I can find it later). We could have a macro like this:
```c #define GEANY_PLUGIN_REGISTER_OBJECT(plugin, min_api, gtype, ...) \ GEANY_PLUGIN_REGISTER_FULL (plugin, \ min_api, \ g_object_new (gtype, ##__VA_ARGS__), \ g_object_unref) ```
To provide syntax sugar to bind a GObject to the module's lifetime.