1
0
forked from 0ad/0ad

Fixed memory leak, I think.

This was SVN commit r2261.
This commit is contained in:
Ykkrosh 2005-05-09 04:52:55 +00:00
parent 34352b77af
commit 5037da70d0

View File

@ -18,6 +18,7 @@ class IJSObject;
class IJSProperty
{
public:
virtual ~IJSProperty() {};
virtual jsval Get( JSContext* cx, IJSObject* obj ) = 0;
virtual void Set( JSContext* cx, IJSObject* obj, jsval value ) = 0;
};
@ -302,7 +303,9 @@ public:
prop = new CJSProperty<PropType, true>( (PropType IJSObject::*)Native );
}
else
{
prop = new CJSProperty<PropType, ReadOnly>( (PropType IJSObject::*)Native );
}
m_NativeProperties[PropertyName] = prop;
}
#ifdef ALLOW_NONSHARED_NATIVES