Commit 4600b823 authored by Sébastien Bacher's avatar Sébastien Bacher Committed by Sébastien Lafargue

open-document-selector: don't free twice the same object

Dispose can be called a second time, use g_clear_pointer to avoid an
invalid free call, fix #129.
parent 0596c6db
Pipeline #64524 passed with stage
in 7 minutes and 32 seconds
......@@ -750,7 +750,7 @@ gedit_open_document_selector_dispose (GObject *object)
g_clear_pointer (&selector->name_font, pango_font_description_free);
g_clear_pointer (&selector->path_font, pango_font_description_free);
g_free (selector->match_markup_color);
g_clear_pointer (&selector->match_markup_color, g_free);
if (selector->recent_items)
{
......
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