mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b89227bd9d
ObexHeaderSet::GetTarget copies the data associated with the ObexHeaderId::Target id into a newly-allocated buffer. All callers of this function, however, fail to free the buffer once they are done with it. Instead of simply freeing the buffer in the caller, however, let's add an API to ObexHeaderSet that gives direct access to the desired header. Doing this means that we have direct access to the data--no copying necessary--and we also make the caller slightly faster, since it no longer has to verify that the appropriate header is there, followed by re-searching for the header it already knows is there. |
||
---|---|---|
.. | ||
bluedroid | ||
bluez | ||
common | ||
ipc | ||
tests/marionette | ||
moz.build |