8000 Merge branch 'fix_segfault' of https://github.com/mdboom/matplotlib-p… · matplotlib/matplotlib@b2109bb · GitHub
[go: up one dir, main page]

Skip to content

Commit b2109bb

Browse files
committed
Merge branch 'fix_segfault' of https://github.com/mdboom/matplotlib-py3 into mdboom-fix_segfault
2 parents ea37f62 + b2f4e1f commit b2109bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_backend_agg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ RendererAgg::buffer_rgba(const Py::Tuple& args)
21942194
args.verify_length(0);
21952195

21962196
#if PY3K
2197-
return Py::asObject(this);
2197+
return Py::asObject(PyMemoryView_FromObject(this));
21982198
#else
21992199
int row_len = width * 4;
22002200
return Py::asObject(PyBuffer_FromMemory(pixBuffer, row_len*height));

0 commit comments

Comments
 (0)
0