void
free_ROBIN_SETCLIENTID(ROBIN_SETCLIENTID *data)
{
free_RobinHeader(&(data)->hdr);
free_bytes(&(data)->clientid);
free_bytes(&(data)->identity);
free_RobinEncryptionKey(&(data)->verifier);
}
void
free_ROBIN_TRANS_APPEND(ROBIN_TRANS_APPEND *data)
{
free_RobinHeader(&(data)->hdr);
free_RobinToken(&(data)->token);
free_bytes(&(data)->data);
}
void
free_ROBIN_TRANS_ABORT(ROBIN_TRANS_ABORT *data)
{
free_RobinHeader(&(data)->hdr);
free_RobinTransFlags(&(data)->flags);
free_RobinToken(&(data)->token);
if ((data)->txid) {
free_bytes((data)->txid);
free((data)->txid);
(data)->txid = NULL;
}
}
示例#4
0
static void
gdk_pixbuf_finalize (GObject *object)
{
        GdkPixbuf *pixbuf = GDK_PIXBUF (object);

        switch (pixbuf->storage) {
        case STORAGE_PIXELS:
                free_pixels (pixbuf);
                break;

        case STORAGE_BYTES:
                free_bytes (pixbuf);
                break;

        default:
                g_assert_not_reached ();
        }
        
        G_OBJECT_CLASS (gdk_pixbuf_parent_class)->finalize (object);
}
示例#5
0
 void operator delete(void* p) {
   free_bytes(p);
 }
void
free_ROBIN_STATUSDATA(ROBIN_STATUSDATA *data)
{
free_RobinStatus(&(data)->rep);
free_bytes(&(data)->data);
}