aboutsummaryrefslogtreecommitdiff
path: root/src/imgbuf.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-01 10:06:48 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-01 10:06:48 -0300
commit9783b0f015c4437f1c3c457caacaecadc06ae644 (patch)
tree84c3ba69d48f3840799e8096077ba03778254108 /src/imgbuf.cc
parenta242c0021263fc48fa57d1e4c1a874713745f590 (diff)
imported patch dicache-cleanup5
Diffstat (limited to 'src/imgbuf.cc')
-rw-r--r--src/imgbuf.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imgbuf.cc b/src/imgbuf.cc
index 26ccb059..ee8f918a 100644
--- a/src/imgbuf.cc
+++ b/src/imgbuf.cc
@@ -70,7 +70,8 @@ void a_Imgbuf_ref(void *v_imgbuf)
*/
void a_Imgbuf_unref(void *v_imgbuf)
{
- ((Imgbuf*)v_imgbuf)->unref();
+ if (v_imgbuf)
+ ((Imgbuf*)v_imgbuf)->unref();
}
/*