Commit f42f3997 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴
Browse files

user-accounts: Fix memory corruption in the avatar popup

Use g_object_set_data_full and g_steal_pointer to ensure the validity of the
"filename" association.

Closes: GNOME/gnome-control-center#399
parent 8fde5401
Pipeline #65051 passed with stages
in 7 minutes and 16 seconds
......@@ -378,8 +378,8 @@ create_face_widget (gpointer item,
gtk_image_set_pixel_size (GTK_IMAGE (image), AVATAR_CHOOSER_PIXEL_SIZE);
gtk_widget_show (image);
g_object_set_data (G_OBJECT (image),
"filename", image_path);
g_object_set_data_full (G_OBJECT (image),
"filename", g_steal_pointer (&image_path), g_free);
return image;
libhandy @ 3721b490
Subproject commit 96c040cacdf3ae1fcef37a003199ed8b61c0fba7
Subproject commit 3721b490b6aacd0a8c755bf445b0a91ee9c347bc
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