Commits

Ruslan Osmanov committed a6ec679

Tiny changes

  • Participants
  • Parent commits 7af1771

Comments (0)

Files changed (2)

 
 	PHP_EVENT_FETCH_EVENT(e, zself);
 
-	event_del(e->event);
-	event_free(e->event);
-	e->event = NULL;
+	if (e->event) {
+		event_del(e->event);
+		event_free(e->event);
+		e->event = NULL;
+	}
 
 	zval_ptr_dtor(&zself);
 }
 {
 	php_event_t *e = (php_event_t *) ptr;
 
-	if (e && e->event) {
+	if (e->event) {
 		event_del(e->event);
 		event_free(e->event);
 		e->event = NULL;