diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-03-14 15:45:44 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-03-14 15:45:53 +0100 |
commit | 6afa220f999e59cb86bc01bbb920da0b6a27d1c3 (patch) | |
tree | 48f98155d6d5d1683b1513383db0dea12f891277 /src/totem-grilo.c | |
parent | 49ff12474f5593538da8fcfa3c9662dcfea3f8ed (diff) | |
download | totem-6afa220f999e59cb86bc01bbb920da0b6a27d1c3.tar.gz |
main: Get out of delete_foreach() if the path isn't valid
Just being safe.
Diffstat (limited to 'src/totem-grilo.c')
-rw-r--r-- | src/totem-grilo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c index 590ee4b4a..e2c8353d7 100644 --- a/src/totem-grilo.c +++ b/src/totem-grilo.c @@ -2056,7 +2056,9 @@ delete_foreach (gpointer data, gboolean success; GError *error = NULL; - gtk_tree_model_get_iter (view_model, &iter, path); + if (!gtk_tree_model_get_iter (view_model, &iter, path)) + return; + gtk_tree_model_get (view_model, &iter, MODEL_RESULTS_CONTENT, &media, MODEL_RESULTS_SOURCE, &source, |