diff options
author | Ton Roosendaal <ton@blender.org> | 2006-02-11 15:45:32 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-02-11 15:45:32 +0300 |
commit | a0569049ac3a8f078795a90ff2eb4a977aea0cad (patch) | |
tree | 724a4de0fb8e806efc3d42bbf0540acfc352c98d | |
parent | 85afaeaf78086937142b6f24a0b0212a53879bbc (diff) |
Potential ugly bugfix in MEM_cache; the function
int IMB_cache_limiter_get_refcount()
Did not return a value at all. Any compiler should flag big warnings for
this btw... tsk tsk!
-rw-r--r-- | source/blender/imbuf/intern/allocimbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c index 89873b92f3d..0d1255d8da0 100644 --- a/source/blender/imbuf/intern/allocimbuf.c +++ b/source/blender/imbuf/intern/allocimbuf.c @@ -541,6 +541,7 @@ void IMB_cache_limiter_unref(struct ImBuf * i) int IMB_cache_limiter_get_refcount(struct ImBuf * i) { if (i->c_handle) { - MEM_CacheLimiter_get_refcount(i->c_handle); + return MEM_CacheLimiter_get_refcount(i->c_handle); } + return 0; } |