diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2016-05-17 16:14:15 +0200 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2016-05-17 16:14:15 +0200 |
commit | 1b2562a3af73f1b0554c73d2f9078acb00eda37b (patch) | |
tree | 98dbc81731cb61ef40b9891fef18662e8e833b59 /zend/functor.cpp | |
parent | 37123a5474f73f3db51cb726cfb512acca4682c8 (diff) |
Fix crash during initialization
Diffstat (limited to 'zend/functor.cpp')
-rw-r--r-- | zend/functor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zend/functor.cpp b/zend/functor.cpp index 7d0404b..866fcea 100644 --- a/zend/functor.cpp +++ b/zend/functor.cpp @@ -6,7 +6,7 @@ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> * @copyright 2015 Copernica BV */ - + /** * Dependencies */ @@ -31,10 +31,10 @@ void Functor::initialize(TSRMLS_D) { // leap out if the class entry is already set if (_entry) return; - + // construct functor object static std::unique_ptr<ClassBase> functor(new Class<Functor>("PhpCpp::Functor")); - + // initialize the functor class _entry = functor->implementation()->initialize(functor.get(), "" TSRMLS_CC); } @@ -48,7 +48,7 @@ void Functor::shutdown(TSRMLS_D) // we forget the entry _entry = nullptr; } - + /** * End of namespace */ |