mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
free iter before going to done
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktextlayout.c (find_display_line_above): free iter before going to done * gtk/gtktreeview.c (validate_visible_area): free above_path, (set_destination_row): free path before returning, (gtk_tree_view_set_drag_dest_row): free current_dest
This commit is contained in:
parent
60c1630edc
commit
4d06c9d09f
@ -1,3 +1,12 @@
|
||||
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktextlayout.c (find_display_line_above): free iter before
|
||||
going to done
|
||||
|
||||
* gtk/gtktreeview.c (validate_visible_area): free above_path,
|
||||
(set_destination_row): free path before returning,
|
||||
(gtk_tree_view_set_drag_dest_row): free current_dest
|
||||
|
||||
Sun Feb 24 14:15:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (widget_to_buffer): Take border
|
||||
|
@ -1,3 +1,12 @@
|
||||
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktextlayout.c (find_display_line_above): free iter before
|
||||
going to done
|
||||
|
||||
* gtk/gtktreeview.c (validate_visible_area): free above_path,
|
||||
(set_destination_row): free path before returning,
|
||||
(gtk_tree_view_set_drag_dest_row): free current_dest
|
||||
|
||||
Sun Feb 24 14:15:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (widget_to_buffer): Take border
|
||||
|
@ -1,3 +1,12 @@
|
||||
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktextlayout.c (find_display_line_above): free iter before
|
||||
going to done
|
||||
|
||||
* gtk/gtktreeview.c (validate_visible_area): free above_path,
|
||||
(set_destination_row): free path before returning,
|
||||
(gtk_tree_view_set_drag_dest_row): free current_dest
|
||||
|
||||
Sun Feb 24 14:15:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (widget_to_buffer): Take border
|
||||
|
@ -1,3 +1,12 @@
|
||||
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktextlayout.c (find_display_line_above): free iter before
|
||||
going to done
|
||||
|
||||
* gtk/gtktreeview.c (validate_visible_area): free above_path,
|
||||
(set_destination_row): free path before returning,
|
||||
(gtk_tree_view_set_drag_dest_row): free current_dest
|
||||
|
||||
Sun Feb 24 14:15:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (widget_to_buffer): Take border
|
||||
|
@ -1,3 +1,12 @@
|
||||
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktextlayout.c (find_display_line_above): free iter before
|
||||
going to done
|
||||
|
||||
* gtk/gtktreeview.c (validate_visible_area): free above_path,
|
||||
(set_destination_row): free path before returning,
|
||||
(gtk_tree_view_set_drag_dest_row): free current_dest
|
||||
|
||||
Sun Feb 24 14:15:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (widget_to_buffer): Take border
|
||||
|
@ -1,3 +1,12 @@
|
||||
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktextlayout.c (find_display_line_above): free iter before
|
||||
going to done
|
||||
|
||||
* gtk/gtktreeview.c (validate_visible_area): free above_path,
|
||||
(set_destination_row): free path before returning,
|
||||
(gtk_tree_view_set_drag_dest_row): free current_dest
|
||||
|
||||
Sun Feb 24 14:15:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (widget_to_buffer): Take border
|
||||
|
@ -1,3 +1,12 @@
|
||||
Mon Feb 25 01:14:26 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktextlayout.c (find_display_line_above): free iter before
|
||||
going to done
|
||||
|
||||
* gtk/gtktreeview.c (validate_visible_area): free above_path,
|
||||
(set_destination_row): free path before returning,
|
||||
(gtk_tree_view_set_drag_dest_row): free current_dest
|
||||
|
||||
Sun Feb 24 14:15:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (widget_to_buffer): Take border
|
||||
|
@ -2430,6 +2430,7 @@ find_display_line_above (GtkTextLayout *layout,
|
||||
if (tmp_top < y)
|
||||
{
|
||||
found_line = line;
|
||||
pango_layout_iter_free (layout_iter);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
@ -3872,6 +3872,9 @@ validate_visible_area (GtkTreeView *tree_view)
|
||||
tree_view->priv->scroll_to_path = NULL;
|
||||
}
|
||||
|
||||
if (above_path)
|
||||
gtk_tree_path_free (above_path);
|
||||
|
||||
if (tree_view->priv->scroll_to_column)
|
||||
{
|
||||
tree_view->priv->scroll_to_column = NULL;
|
||||
@ -4444,6 +4447,9 @@ set_destination_row (GtkTreeView *tree_view,
|
||||
NULL,
|
||||
GTK_TREE_VIEW_DROP_BEFORE);
|
||||
|
||||
if (path)
|
||||
gtk_tree_path_free (path);
|
||||
|
||||
/* don't propagate to parent though */
|
||||
return TRUE;
|
||||
}
|
||||
@ -4496,6 +4502,9 @@ set_destination_row (GtkTreeView *tree_view,
|
||||
GTK_TREE_VIEW_DROP_BEFORE);
|
||||
}
|
||||
|
||||
if (path)
|
||||
gtk_tree_path_free (path);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
static GtkTreePath*
|
||||
@ -9538,6 +9547,7 @@ gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view,
|
||||
if (new_tree && new_node)
|
||||
_gtk_tree_view_queue_draw_node (tree_view, new_tree, new_node, NULL);
|
||||
}
|
||||
gtk_tree_path_free (current_dest);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user