Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-02-11 15:45:32 +0300
committerTon Roosendaal <ton@blender.org>2006-02-11 15:45:32 +0300
commita0569049ac3a8f078795a90ff2eb4a977aea0cad (patch)
tree724a4de0fb8e806efc3d42bbf0540acfc352c98d /source/blender/imbuf/intern/allocimbuf.c
parent85afaeaf78086937142b6f24a0b0212a53879bbc (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!
Diffstat (limited to 'source/blender/imbuf/intern/allocimbuf.c')
-rw-r--r--source/blender/imbuf/intern/allocimbuf.c3
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;
}