aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tree.h
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-02-03 11:30:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-06 20:31:44 +0100
commitb9004bd50c2fa5d4c0ef71ec09c9e70ec83f2e87 (patch)
tree3291cd272016c68f1ddbcc55dd8cd56b4087c398 /libavutil/tree.h
parentc54ac7a8f252a03299c7686fb885c41ee9fc1233 (diff)
downloadffmpeg-b9004bd50c2fa5d4c0ef71ec09c9e70ec83f2e87.tar.gz
Remove a few if (p) av_freep(&p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 523d9407d57e9210428b6d962f0ebf48aae55638)
Diffstat (limited to 'libavutil/tree.h')
-rw-r--r--libavutil/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/tree.h b/libavutil/tree.h
index bf09fd0be5..8c7de2ffbf 100644
--- a/libavutil/tree.h
+++ b/libavutil/tree.h
@@ -67,7 +67,7 @@ void *av_tree_find(const struct AVTreeNode *root, void *key, int (*cmp)(void *ke
* return av_tree_insert(rootp, key, cmp, next);
* }
* void *tree_remove(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b, AVTreeNode **next)){
- * if(*next) av_freep(next);
+ * av_freep(next);
* return av_tree_insert(rootp, key, cmp, next);
* }
* @endcode