0

fix small bug when parent option merging fails

This commit is contained in:
Aaron Griffith
2011-06-15 00:42:41 -04:00
parent 7d587ecc6d
commit 57100c1912

View File

@@ -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;
} }