summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-07 17:53:58 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-07 17:53:58 +0200
commit837822b5c6924be7fbc297bcef9639d7ada95a30 (patch)
treefe8e3096dbefb700f691a3ce42ad1f9ee8474650 /doc
parentc3744b6736ce45c1c700b7f026fb0acfb0069a6d (diff)
downloadxine-lib-837822b5c6924be7fbc297bcef9639d7ada95a30.tar.gz
xine-lib-837822b5c6924be7fbc297bcef9639d7ada95a30.tar.bz2
Simplify MRL_FREE and MRL_DUPLICATE macros.
There is no need to check if a pointer is not NULL before freeing it, so just call free() during MRL_FREE. During duplication, always prefer freeing and recreating to reallocating, as that would probably take more time than would actually be needed to allocate a new memory area. Also, most likely the duplication will happen on a new instance.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions