[gthumb] fixed possible crash after closing the context menu in the folder tree
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed possible crash after closing the context menu in the folder tree
- Date: Mon, 26 Mar 2012 17:10:40 +0000 (UTC)
commit a8684c70afc9dcca81fb653b8d47bdad501af1a6
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Mar 26 18:02:16 2012 +0200
fixed possible crash after closing the context menu in the folder tree
gthumb/gth-browser.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 9e74f87..cf111a1 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2802,9 +2802,10 @@ folder_popup_hide_cb (GtkWidget *widget,
return;
path = gth_folder_tree_get_path (GTH_FOLDER_TREE (browser->priv->folder_tree), browser->priv->location->file);
- gth_folder_tree_select_path (GTH_FOLDER_TREE (browser->priv->folder_tree), path);
-
- gtk_tree_path_free (path);
+ if (path != NULL) {
+ gth_folder_tree_select_path (GTH_FOLDER_TREE (browser->priv->folder_tree), path);
+ gtk_tree_path_free (path);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]