aboutsummaryrefslogtreecommitdiff
path: root/src/gtkutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkutils.c')
-rw-r--r--src/gtkutils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gtkutils.c b/src/gtkutils.c
index 8e5c16f1..23e42bec 100644
--- a/src/gtkutils.c
+++ b/src/gtkutils.c
@@ -535,7 +535,13 @@ gboolean gtkut_tree_row_reference_equal(GtkTreeRowReference *ref1,
return FALSE;
path1 = gtk_tree_row_reference_get_path(ref1);
+ if (!path1)
+ return FALSE;
path2 = gtk_tree_row_reference_get_path(ref2);
+ if (!path2) {
+ gtk_tree_path_free(path1);
+ return FALSE;
+ }
result = gtk_tree_path_compare(path1, path2);