X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-sidebar-links.c;h=58dac08ca9f835ed39c9688dc128c00bf8a3f80d;hb=848665b157185945d190a7a746d054d7f5d5e6e0;hp=55f2ddb341d787c29835781fea65e270e41708e4;hpb=bb5ea194600d5ae09b18a147420f4fc42c0808df;p=evince.git diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c index 55f2ddb3..58dac08c 100644 --- a/shell/ev-sidebar-links.c +++ b/shell/ev-sidebar-links.c @@ -578,11 +578,12 @@ job_finished_callback (EvJobLinks *job, GtkTreeSelection *selection; priv = sidebar_links->priv; - - priv->model = g_object_ref (job->model); + + priv->model = job->model; g_object_notify (G_OBJECT (sidebar_links), "model"); gtk_tree_view_set_model (GTK_TREE_VIEW (priv->tree_view), job->model); + g_object_unref (job); priv->job = NULL;