Commit 713e2097 authored by Benjamin Berg's avatar Benjamin Berg

display: Add missing finalize handler for CcDisplayMonitor

This caused the UI related strings to be leaked.
parent 41717253
......@@ -150,9 +150,25 @@ cc_display_monitor_init (CcDisplayMonitor *self)
priv->is_usable = TRUE;
static void
cc_display_monitor_finalize (GObject *object)
CcDisplayMonitor *self = CC_DISPLAY_MONITOR (object);
CcDisplayMonitorPrivate *priv = CC_DISPLAY_MONITOR_GET_PRIVATE (self);
g_clear_pointer (&priv->ui_name, g_free);
g_clear_pointer (&priv->ui_number_name, g_free);
G_OBJECT_CLASS (cc_display_monitor_parent_class)->finalize (object);
static void
cc_display_monitor_class_init (CcDisplayMonitorClass *klass)
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->finalize = cc_display_monitor_finalize;
g_signal_new ("rotation",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment