mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
monitor-config-manager: Define cleanup functions for structs
Monitor configuration structures can be used inside containers such as GList and in order to have smart cleanups we need to define the relative free function Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/522>
This commit is contained in:
parent
4574f2d9af
commit
3dbec4d709
@ -198,4 +198,11 @@ gboolean meta_verify_monitors_config (MetaMonitorsConfig *config,
|
|||||||
MetaMonitorManager *monitor_manager,
|
MetaMonitorManager *monitor_manager,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaMonitorConfig, meta_monitor_config_free)
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaLogicalMonitorConfig,
|
||||||
|
meta_logical_monitor_config_free)
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaMonitorsConfigKey,
|
||||||
|
meta_monitors_config_key_free)
|
||||||
|
|
||||||
#endif /* META_MONITOR_CONFIG_MANAGER_H */
|
#endif /* META_MONITOR_CONFIG_MANAGER_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user