[gnome-photos] application: Be more assertive



commit ee28dbe747b0e766957a9790572fb6d04e8b562d
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Nov 16 13:01:48 2015 +0100

    application: Be more assertive

 src/photos-application.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 17a763d..9d8a6a7 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1411,10 +1411,7 @@ photos_application_finalize (GObject *object)
   PhotosApplication *self = PHOTOS_APPLICATION (object);
   PhotosApplicationPrivate *priv = self->priv;
 
-  if (G_UNLIKELY (priv->create_miners_count != 0))
-    g_critical ("Application is being destroyed while %u miner proxies are still being created.",
-                priv->create_miners_count);
-
+  g_assert (priv->create_miners_count == 0);
   g_assert (priv->refresh_miner_id == 0);
 
   G_OBJECT_CLASS (photos_application_parent_class)->finalize (object);


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