ole_free()
public
invokes Release method of Dispatch interface of WIN32OLE object. Usually, you do not need to call
this method because Release method called automatically when WIN32OLE object garbaged.
Show source
/*
* call-seq:
* WIN32OLE#ole_free
*
* invokes Release method of Dispatch interface of WIN32OLE object.
* Usually, you do not need to call this method because Release method
* called automatically when WIN32OLE object garbaged.
*
*/
static VALUE
fole_free(self)
VALUE self;
{
struct oledata *pole;
rb_secure(4);
OLEData_Get_Struct(self, pole);
OLE_FREE(pole->pDispatch);
pole->pDispatch = NULL;
return Qnil;
}