[gnome-photos/wip/rishi/assert-more: 4/6] collection-icon-watcher: Be more strict about what is acceptable




commit a847b3968faea9bce382ca73d252c676ef344d5e
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Mar 14 18:41:01 2021 +0100

    collection-icon-watcher: Be more strict about what is acceptable

 src/photos-collection-icon-watcher.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/photos-collection-icon-watcher.c b/src/photos-collection-icon-watcher.c
index 3f1dd980..48c3cd04 100644
--- a/src/photos-collection-icon-watcher.c
+++ b/src/photos-collection-icon-watcher.c
@@ -482,6 +482,8 @@ photos_collection_icon_watcher_new (PhotosBaseItem *collection)
 void
 photos_collection_icon_watcher_refresh (PhotosCollectionIconWatcher *self)
 {
+  g_return_if_fail (PHOTOS_IS_COLLECTION_ICON_WATCHER (self));
+
   photos_collection_icon_watcher_destroy (self);
   photos_collection_icon_watcher_start (self);
 }


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