Commit 275bbbf8 authored by Matthias Clasen's avatar Matthias Clasen

places sidebar: Don't leak a reference

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774185
parent 9e551042
......@@ -3514,15 +3514,15 @@ on_button_press_event (GtkWidget *widget,
"section_type", &section_type,
NULL);
if (section_type != SECTION_BOOKMARKS)
return FALSE;
sidebar->drag_row = GTK_WIDGET (row);
sidebar->drag_row_x = (gint)event->x;
sidebar->drag_row_y = (gint)event->y;
if (section_type == SECTION_BOOKMARKS)
{
sidebar->drag_row = GTK_WIDGET (row);
sidebar->drag_row_x = (gint)event->x;
sidebar->drag_row_y = (gint)event->y;
sidebar->drag_root_x = event->x_root;
sidebar->drag_root_y = event->y_root;
sidebar->drag_root_x = event->x_root;
sidebar->drag_root_y = event->y_root;
}
g_object_unref (sidebar);
......
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