[gjs] closure: Fix error when closure debug enabled



commit 6f427d17660addf2852cc0ad6ff786702bb79c1e
Author: Philip Chimento <philip endlessm com>
Date:   Tue Mar 7 18:20:23 2017 -0800

    closure: Fix error when closure debug enabled
    
    We don't compile with GJS_VERBOSE_ENABLE_GCLOSURE defined too often, so
    sometimes errors slip through.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779692

 gi/closure.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/closure.cpp b/gi/closure.cpp
index 1f613a7..67fb034 100644
--- a/gi/closure.cpp
+++ b/gi/closure.cpp
@@ -127,7 +127,7 @@ closure_clear_idle(void *data)
 {
     auto closure = static_cast<GjsClosure *>(data);
     gjs_debug_closure("Clearing closure %p which calls object %p",
-                      &closure->priv, closure->priv.object.get());
+                      &closure->priv, closure->priv.obj.get());
 
     closure->priv.obj.reset();
     closure->priv.context = nullptr;


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