diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-07 17:53:58 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-07 17:53:58 +0200 |
commit | 837822b5c6924be7fbc297bcef9639d7ada95a30 (patch) | |
tree | fe8e3096dbefb700f691a3ce42ad1f9ee8474650 /README | |
parent | c3744b6736ce45c1c700b7f026fb0acfb0069a6d (diff) | |
download | xine-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 'README')
0 files changed, 0 insertions, 0 deletions