[gjs: 4/12] object: Remove duplicate reset of JS wrapper



commit 389f4ff81a9bd769d85c6fc65af8d93218541afe
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue Aug 13 12:00:16 2019 -0700

    object: Remove duplicate reset of JS wrapper
    
    m_wrapper is already discarded a few lines above this, inside
    release_native_object().

 gi/object.cpp | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index 1509c113..a28f4979 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -1438,7 +1438,6 @@ ObjectInstance::disassociate_js_gobject(void)
 
     /* Mark that a JS object once existed, but it doesn't any more */
     m_wrapper_finalized = true;
-    m_wrapper = nullptr;
 }
 
 bool


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