Re: [Rd] Pointer ownership with GECreateDevDesc/GEDestroyDevDesc

2014-09-22 Thread Ritch Melton
to NULL so we don't reference it again s_pGEDevDesc = NULL; } } I will On Fri, Sep 19, 2014 at 10:37 AM, Ritch Melton wrote: > According to the "R Internals" document, for a custom device, I should > create a pDevDesc structure that gets passed to GECreateDevDesc

[Rd] Pointer ownership with GECreateDevDesc/GEDestroyDevDesc

2014-09-19 Thread Ritch Melton
According to the "R Internals" document, for a custom device, I should create a pDevDesc structure that gets passed to GECreateDevDesc. ..elided... pDevDesc dev; /* Allocate and initialize the device driver data */ if (!(dev = (pDevDesc) calloc(1, sizeof(DevDesc return 0; /* or error() */ /* s