Skip to content

Commit 5b0e0d8

Browse files
committed
Simplify reference counting
1 parent a501abb commit 5b0e0d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_backend_agg.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,8 +2435,7 @@ RendererAgg::tostring_rgba_minimized(const Py::Tuple& args)
24352435
bounds[3] = Py::Int(newheight);
24362436

24372437
Py::Tuple result(2);
2438-
result[0] = Py::Object(data, false);
2439-
Py_DECREF(data);
2438+
result[0] = Py::Object(data, true);
24402439
result[1] = bounds;
24412440

24422441
return result;

0 commit comments

Comments
 (0)