diff options
| author | mbkma <[email protected]> | 2026-03-12 00:19:39 +0100 |
|---|---|---|
| committer | mbkma <[email protected]> | 2026-03-12 00:19:39 +0100 |
| commit | 20504eabb8a9f831b055c648167fed660d060ee9 (patch) | |
| tree | ca0ebe09dd45c2096bbade4af5d546dad4e585b2 | |
| parent | d39bd997538bcae87637a8f98f67296bd622b3e5 (diff) | |
| download | mate-netbook-memleak.tar.bz2 mate-netbook-memleak.tar.xz | |
fix memleaksmemleak
| -rw-r--r-- | mate-window-picker-applet/task-item.c | 1 | ||||
| -rw-r--r-- | mate-window-picker-applet/task-title.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/mate-window-picker-applet/task-item.c b/mate-window-picker-applet/task-item.c index bd2990a..07b90b2 100644 --- a/mate-window-picker-applet/task-item.c +++ b/mate-window-picker-applet/task-item.c @@ -324,6 +324,7 @@ task_item_draw (GtkWidget *widget, cairo_pattern_add_color_stop_rgba (glow_pattern, 0.6, 1, 1, 1, 0); cairo_set_source (cr, glow_pattern); cairo_paint (cr); + cairo_pattern_destroy (glow_pattern); } if (!pbuf) 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); |
