update readme
[m6w6/ext-psi] / src / types / decl_struct.c
index d17895a1beece66708fa212e5069140cfa123e91..5372857a94f270d241e7343ce18cc84da309da3f 100644 (file)
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *******************************************************************************/
 
-#include "php_psi_stdinc.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#else
+# include "php_config.h"
+#endif
 #include "data.h"
 
 #include <assert.h>
@@ -47,9 +51,6 @@ void psi_decl_struct_free(struct psi_decl_struct **s_ptr)
                if (s->args) {
                        psi_plist_free(s->args);
                }
-               if (s->engine.type && s->engine.dtor) {
-                       s->engine.dtor(s->engine.type);
-               }
                zend_string_release(s->name);
                free(s);
        }