diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-10-19 17:01:31 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-10-19 17:01:31 -0400 |
commit | 4764a856c7a6e5a84d4067e7b105c09a93ffdbe4 (patch) | |
tree | fe8484147c4e43a8f6d177c169e180f21076002a | |
parent | cda2c75df4b95a481e8b774081ec1240d47fa45f (diff) | |
download | nautilus-4764a856c7a6e5a84d4067e7b105c09a93ffdbe4.tar.gz |
places-sidebar: return if we fail to compute a drop position
Instead of using an invalid GtkTreePath, which could cause a segfault
later.
https://bugzilla.gnome.org/show_bug.cgi?id=660876
-rw-r--r-- | src/nautilus-places-sidebar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c index 567d8eb9e..6db86e1a5 100644 --- a/src/nautilus-places-sidebar.c +++ b/src/nautilus-places-sidebar.c @@ -1441,7 +1441,10 @@ drag_data_received_callback (GtkWidget *widget, } /* Compute position */ - compute_drop_position (tree_view, x, y, &tree_path, &tree_pos, sidebar); + success = compute_drop_position (tree_view, x, y, &tree_path, &tree_pos, sidebar); + if (!success) { + goto out; + } success = FALSE; |