GNOME Bugzilla – Bug 789227
MetaLogicalMonitor: free the monitors list on finalize
Last modified: 2017-10-20 08:27:23 UTC
We leak a list on MetaLogicalMonitor, just clean this up on finalize.
Created attachment 361911 [details] [review] MetaLogicalMonitor: free the monitors list on finalize
Not sure if this has some relation with https://bugzilla.redhat.com/show_bug.cgi?id=1472724 but I'm skeptical. I think adding proper refs/weak refs would be better for that instead.
Review of attachment 361911 [details] [review]: Good catch! Except for two naming nits this looks good to me. ::: src/backends/meta-logical-monitor.c @@ +254,3 @@ +static void +meta_logical_monitor_finalize (GObject *gobject) consistency nit: s/gobject/object/ @@ +266,3 @@ meta_logical_monitor_class_init (MetaLogicalMonitorClass *klass) { + GObjectClass *gobject_class = G_OBJECT_CLASS (klass); consistency nit: s/gobject_class/object_class/
For the record, https://bugzilla.redhat.com/show_bug.cgi?id=1472724 is handled in https://bugzilla.gnome.org/show_bug.cgi?id=786929 .
Created attachment 361916 [details] [review] MetaLogicalMonitor: free the monitors list on finalize Updated patch as requested
Review of attachment 361916 [details] [review]: lgtm.
The following fixes have been pushed:
Fixed here https://git.gnome.org/browse/mutter/commit/?id=f8cf6d0