[libdazzle] suggestions: assert before chaining up



commit a0f74d4f83b385988cb92ae4b8e4d9f9c2708e12
Author: Christian Hergert <chergert redhat com>
Date:   Sun Dec 17 02:27:24 2017 -0800

    suggestions: assert before chaining up

 src/suggestions/dzl-suggestion-entry.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/suggestions/dzl-suggestion-entry.c b/src/suggestions/dzl-suggestion-entry.c
index 4c7f5c8..15a6e7b 100644
--- a/src/suggestions/dzl-suggestion-entry.c
+++ b/src/suggestions/dzl-suggestion-entry.c
@@ -341,9 +341,9 @@ dzl_suggestion_entry_destroy (GtkWidget *widget)
 
   g_clear_object (&priv->model);
 
-  GTK_WIDGET_CLASS (dzl_suggestion_entry_parent_class)->destroy (widget);
-
   g_assert (priv->popover == NULL);
+
+  GTK_WIDGET_CLASS (dzl_suggestion_entry_parent_class)->destroy (widget);
 }
 
 static void


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