Re: #50213 - No accessor for GObject::property_specs



on 3/26/01 1:55 PM, Owen Taylor at otaylor redhat com wrote:

> +  result = g_new (GParamSpec *, oclass->n_property_specs);
> +  memcpy (result, oclass->property_specs, oclass->n_property_specs *
> sizeof(GParamSpec *));

g_memdup seems better for cases like this.

    -- Darin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]