clipboard-manager: Plug mimetypes list leak
Fixes https://gitlab.gnome.org/GNOME/mutter/issues/1005 https://gitlab.gnome.org/GNOME/mutter/merge_requests/1001
This commit is contained in:
parent
c1bdaba5ac
commit
05301d280c
@ -122,13 +122,17 @@ owner_changed_cb (MetaSelection *selection,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (best_idx < 0)
|
if (best_idx < 0)
|
||||||
return;
|
{
|
||||||
|
g_list_free_full (mimetypes, g_free);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
display->saved_clipboard_mimetype = g_strdup (best);
|
display->saved_clipboard_mimetype = g_strdup (best);
|
||||||
|
g_list_free_full (mimetypes, g_free);
|
||||||
output = g_memory_output_stream_new_resizable ();
|
output = g_memory_output_stream_new_resizable ();
|
||||||
meta_selection_transfer_async (selection,
|
meta_selection_transfer_async (selection,
|
||||||
META_SELECTION_CLIPBOARD,
|
META_SELECTION_CLIPBOARD,
|
||||||
best,
|
display->saved_clipboard_mimetype,
|
||||||
transfer_size,
|
transfer_size,
|
||||||
output,
|
output,
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user