Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions imagick.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ static zval *php_imagick_read_property(zval *object, zval *member, int type, voi
}

if (member == &tmp_member) {
zval_dtor(member);
zval_ptr_dtor_nogc(member);
}

return retval;
Expand Down Expand Up @@ -778,7 +778,7 @@ static zval *php_imagick_read_property(zval *object, zval *member, int type, con
}
}
if (member == &tmp_member) {
zval_dtor(member);
zval_ptr_dtor_nogc(member);
}

if (!retval) {
Expand Down
6 changes: 3 additions & 3 deletions imagick_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ double *php_imagick_zval_to_double_array(zval *param_array, im_long *num_element
convert_to_double(tmp_pzval);

value = Z_DVAL_P(tmp_pzval);
zval_dtor (tmp_pzval);
zval_ptr_dtor_nogc (tmp_pzval);
}
double_array[i] = value;
}
Expand Down Expand Up @@ -374,7 +374,7 @@ im_long *php_imagick_zval_to_long_array(zval *param_array, im_long *num_elements
convert_to_long(tmp_pzval);

value = Z_LVAL_P(tmp_pzval);
zval_dtor (tmp_pzval);
zval_ptr_dtor_nogc (tmp_pzval);
}
long_array[i] = value;
}
Expand Down Expand Up @@ -425,7 +425,7 @@ unsigned char *php_imagick_zval_to_char_array(zval *param_array, im_long *num_el
convert_to_long(tmp_pzval);

value = Z_LVAL_P(tmp_pzval);
zval_dtor (tmp_pzval);
zval_ptr_dtor_nogc (tmp_pzval);
}
char_array[i] = value;
}
Expand Down