mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
a bit better checking for free'd variables.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3071 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f0eaf349f7
commit
f070a873e0
@ -170,7 +170,7 @@ void *irssi_ref_object(SV *o)
|
||||
if (perl_memory_check_level > 0) {
|
||||
if (perl_memory_check_level > 1)
|
||||
GC_gcollect();
|
||||
if (GC_base(p) == NULL)
|
||||
if (GC_base(p) != p)
|
||||
croak("variable is already free'd");
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user