Permalink
Browse files

Prevent GC from crashing if Bindings method return NULL PythonDataSer…

…ies (#3014)
  • Loading branch information...
riccioclista authored and liversedge committed Feb 9, 2019
1 parent 8836252 commit 20ffbb39f55c61b61aac744944c027b3bb239fd4
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/Python/SIP/Bindings.cpp
@@ -773,7 +773,12 @@ PythonDataSeries::PythonDataSeries(QString name, Py_ssize_t count) : name(name),
PythonDataSeries::PythonDataSeries() : name(QString()), count(0), data(NULL) {}
PythonDataSeries::PythonDataSeries(PythonDataSeries *clone)
{
*this = *clone;
if (clone) *this = *clone;
else {
name = QString();
count = 0;
data = NULL;
}
}

PythonDataSeries::~PythonDataSeries()

0 comments on commit 20ffbb3

Please sign in to comment.