Commit 012bc989 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Fixed gtk_recent_chooser_menu_set_current_filter to update the local pointer.

Before this patch, unsetting the filter manually before disposing
the recent chooser menu (or unsetting the filter twice), would cause
warnings (or invalid memory accesses).
parent 86b5252a
......@@ -731,11 +731,10 @@ gtk_recent_chooser_menu_set_current_filter (GtkRecentChooserMenu *menu,
if (priv->current_filter)
g_object_unref (G_OBJECT (priv->current_filter));
if (filter)
{
priv->current_filter = filter;
g_object_ref_sink (priv->current_filter);
}
priv->current_filter = filter;
if (priv->current_filter)
g_object_ref_sink (priv->current_filter);
gtk_recent_chooser_menu_populate (menu);
......
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