fix small bug when parent option merging fails
This commit is contained in:
@@ -80,6 +80,7 @@ render_mode_create_options(const char *mode) {
|
|||||||
parent_options = render_mode_create_options(parent);
|
parent_options = render_mode_create_options(parent);
|
||||||
if (parent_options) {
|
if (parent_options) {
|
||||||
if (PyDict_Merge(ret, parent_options, 0) == -1) {
|
if (PyDict_Merge(ret, parent_options, 0) == -1) {
|
||||||
|
Py_DECREF(ret);
|
||||||
Py_DECREF(parent_options);
|
Py_DECREF(parent_options);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user