mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
appchooser: Plug a memory leak
We were not dropping the reference that the model gives us. https://bugzilla.gnome.org/show_bug.cgi?id=774352
This commit is contained in:
parent
83712a48f4
commit
34e26017e3
@ -161,17 +161,17 @@ refresh_and_emit_app_selected (GtkAppChooserWidget *self,
|
||||
if (!g_app_info_equal (self->priv->selected_app_info, info))
|
||||
{
|
||||
should_emit = TRUE;
|
||||
g_object_unref (self->priv->selected_app_info);
|
||||
|
||||
self->priv->selected_app_info = info;
|
||||
g_set_object (&self->priv->selected_app_info, info);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
should_emit = TRUE;
|
||||
self->priv->selected_app_info = info;
|
||||
g_set_object (&self->priv->selected_app_info, info);
|
||||
}
|
||||
|
||||
g_object_unref (info);
|
||||
|
||||
if (should_emit)
|
||||
g_signal_emit (self, signals[SIGNAL_APPLICATION_SELECTED], 0,
|
||||
self->priv->selected_app_info);
|
||||
|
Loading…
Reference in New Issue
Block a user