[gjs/wip/ptomato/786668: 4/6] closure: Debug message on invalidate signal



commit 54e600f8af749101ad9038af81fb6ef0386ee7fe
Author: Philip Chimento <philip endlessm com>
Date:   Tue Aug 22 12:08:26 2017 -0700

    closure: Debug message on invalidate signal
    
    We log a closure debug message in the other case where a closure is
    invalidated, so we should do it here as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786668

 gi/closure.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gi/closure.cpp b/gi/closure.cpp
index 8fd76ab..2528b13 100644
--- a/gi/closure.cpp
+++ b/gi/closure.cpp
@@ -166,6 +166,9 @@ closure_set_invalid(gpointer  data,
 {
     Closure *self = &((GjsClosure*) closure)->priv;
 
+    gjs_debug_closure("Invalidating signal closure %p which calls object %p",
+                      closure, self->obj.get());
+
     self->obj.reset();
     self->context = nullptr;
 


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