From ef1f154c7a71f1e3be5cab662ab249ca708051b6 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 23 Aug 2023 11:17:50 -0300 Subject: [PATCH] core/shell-search-provider: Check for pending search Now that GcalTimeline properly notifies about the complete state, it uncovered an issue where GcalShellSearchProvider was dereferencing a NULL pointer. Protect against that. --- src/core/gcal-shell-search-provider.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/gcal-shell-search-provider.c b/src/core/gcal-shell-search-provider.c index a849629c..9c6fe5ef 100644 --- a/src/core/gcal-shell-search-provider.c +++ b/src/core/gcal-shell-search-provider.c @@ -315,6 +315,9 @@ on_timeline_completed_cb (GcalTimeline *timeline, GCAL_ENTRY; + if (!self->pending_search) + GCAL_RETURN (); + if (!gcal_timeline_is_complete (timeline)) GCAL_RETURN ();