Add assert for invalid NULL type parameter when calling SWIG_Ruby_NewPointerObj.
Closes #935
This commit is contained in:
parent
79620b10a9
commit
b4377488f7
2 changed files with 8 additions and 4 deletions
|
|
@ -7,6 +7,9 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
||||||
Version 3.0.13 (in progress)
|
Version 3.0.13 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
2017-04-20: wsfulton
|
||||||
|
[Ruby] #586, #935 Add assert for invalid NULL type parameter when calling SWIG_Ruby_NewPointerObj.
|
||||||
|
|
||||||
2017-04-20: tamuratak
|
2017-04-20: tamuratak
|
||||||
[Ruby] #930, #937 - Fix containers of std::shared_ptr.
|
[Ruby] #930, #937 - Fix containers of std::shared_ptr.
|
||||||
Upcasting, const types (eg vector<shared_ptr<const T>>) and NULL/nullptr support added.
|
Upcasting, const types (eg vector<shared_ptr<const T>>) and NULL/nullptr support added.
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
||||||
if (!ptr)
|
if (!ptr)
|
||||||
return Qnil;
|
return Qnil;
|
||||||
|
|
||||||
|
assert(type);
|
||||||
if (type->clientdata) {
|
if (type->clientdata) {
|
||||||
sklass = (swig_class *) type->clientdata;
|
sklass = (swig_class *) type->clientdata;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue