diff options
author | Nishant Gupta <nish.gupta01@gmail.com> | 2016-08-02 16:51:15 +0530 |
---|---|---|
committer | Nishant Gupta <nish.gupta01@gmail.com> | 2016-08-02 16:51:15 +0530 |
commit | 5aec1e54b1ca204e1a50ae50754993297e539411 (patch) | |
tree | 968d74c7a4a2f895bf163975797ee7692949a3fc | |
parent | fffb3cfba99da8f26d6d33b64294f4b0c6dc945a (diff) | |
download | swig-5aec1e54b1ca204e1a50ae50754993297e539411.tar.gz |
Remove deletion from sweep()
-rw-r--r-- | Lib/hhvm/hhvm.swg | 5 | ||||
-rw-r--r-- | Source/Modules/hhvm.cxx | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/Lib/hhvm/hhvm.swg b/Lib/hhvm/hhvm.swg index 1bb0b0e0d..6fe06aeee 100644 --- a/Lib/hhvm/hhvm.swg +++ b/Lib/hhvm/hhvm.swg @@ -19,7 +19,7 @@ "KindOfInt64"; %typemap(consttab) bool - "KindOfBoolean";t + "KindOfBoolean"; %typemap(consttab) float, double @@ -355,9 +355,6 @@ class _wrap_$hhclassname { public: static HPHP::Class* getClass(); void sweep() { - if (!isRef) { - delete _obj_ptr; - } _obj_ptr = nullptr; } ~_wrap_$hhclassname() { sweep(); } diff --git a/Source/Modules/hhvm.cxx b/Source/Modules/hhvm.cxx index fa8e24562..d18b543e9 100644 --- a/Source/Modules/hhvm.cxx +++ b/Source/Modules/hhvm.cxx @@ -880,7 +880,6 @@ public: Printf(f_classes, " static HPHP::Class* getClass();\n"); Printf(f_classes, " void sweep() {\n"); - Printf(f_classes, " delete _obj_ptr;\n"); Printf(f_classes, " _obj_ptr = nullptr;\n"); Printf(f_classes, " }\n"); Printf(f_classes, " ~%s() { sweep(); }\n\n", wname); |