[gthumb] ignore null entry points



commit 361915666fd988b5dc80c9d6f38c8d0cc259186b
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun May 30 10:55:44 2021 +0200

    ignore null entry points

 gthumb/gth-browser.c | 2 +-
 gthumb/gth-main.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 6dbebdd6..ef55f5a8 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1834,7 +1834,7 @@ _gth_browser_load (GthBrowser *browser,
                                   vscroll,
                                   action,
                                   automatic,
-                                  entry_point->file);
+                                  (entry_point != NULL) ? entry_point->file : NULL);
 
        _gth_browser_add_activity (browser);
 
diff --git a/gthumb/gth-main.c b/gthumb/gth-main.c
index 5a205c74..ca8f7ba4 100644
--- a/gthumb/gth-main.c
+++ b/gthumb/gth-main.c
@@ -369,7 +369,7 @@ gth_main_get_nearest_entry_point (GFile *file)
        }
        g_free (uri);
 
-       g_object_ref (nearest);
+       _g_object_ref (nearest);
 
        _g_object_list_unref (entries);
        _g_object_list_unref (list);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]