diff options
| author | mbkma <[email protected]> | 2026-03-12 00:19:39 +0100 |
|---|---|---|
| committer | mbkma <[email protected]> | 2026-03-14 00:46:08 +0100 |
| commit | 399cf2b813922b79f220ed40b7788cc50a20e92a (patch) | |
| tree | 47a3eb27af7831d74a4e0c70e3f72402407978e6 /mate-window-picker-applet/task-title.c | |
| parent | ce7f7ecb2d5f44c998a240cc2d24403d6d5d5451 (diff) | |
| download | mate-netbook-memleak.tar.bz2 mate-netbook-memleak.tar.xz | |
fix memleaksmemleak
Diffstat (limited to 'mate-window-picker-applet/task-title.c')
| -rw-r--r-- | mate-window-picker-applet/task-title.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-window-picker-applet/task-title.c b/mate-window-picker-applet/task-title.c index 5accce2..1ba10de 100644 --- a/mate-window-picker-applet/task-title.c +++ b/mate-window-picker-applet/task-title.c @@ -77,6 +77,7 @@ start_logout_dialog (TaskTitle *title) gdk_app_launch_context_set_screen (launch_context, gdkscreen); g_app_info_launch (app_info, NULL, G_APP_LAUNCH_CONTEXT (launch_context), &error); g_object_unref (launch_context); + g_object_unref (app_info); return TRUE; } @@ -93,6 +94,7 @@ start_logout_dialog (TaskTitle *title) gtk_widget_show (dialog); g_error_free (error); + g_object_unref (app_info); return FALSE; } @@ -449,6 +451,7 @@ task_title_set_bold_window_title (TaskTitle *title, gboolean bold_window_title) } pango_attr_list_insert (attr_list, attr); gtk_label_set_attributes (GTK_LABEL (priv->label), attr_list); + pango_attr_list_unref (attr_list); } static void @@ -582,6 +585,7 @@ task_title_init (TaskTitle *title) PangoAttribute *attr = pango_attr_weight_new (PANGO_WEIGHT_BOLD); pango_attr_list_insert (attr_list, attr); gtk_label_set_attributes (GTK_LABEL (priv->label), attr_list); + pango_attr_list_unref (attr_list); } gtk_box_pack_start (GTK_BOX (priv->box), priv->label, TRUE, TRUE, 0); |
