summaryrefslogtreecommitdiff
path: root/gdk/gdkrgb.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-11-18 17:01:01 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-11-18 17:01:01 +0000
commit14ec95efb42c28947caa74894bf5049c474dd846 (patch)
tree7f360c3b0af486d0d4a979abd6618200efc451a4 /gdk/gdkrgb.c
parent1f74dcee1b000dd8e5550154fa30fcda09300d22 (diff)
downloadgdk-pixbuf-14ec95efb42c28947caa74894bf5049c474dd846.tar.gz
Fix off-by-one error when destroying allocated segments on failure.
Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com> * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix off-by-one error when destroying allocated segments on failure. (Elliot)
Diffstat (limited to 'gdk/gdkrgb.c')
-rw-r--r--gdk/gdkrgb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c
index 4aed5bf5d..aa24b3cfa 100644
--- a/gdk/gdkrgb.c
+++ b/gdk/gdkrgb.c
@@ -629,7 +629,7 @@ gdk_rgb_allocate_images (GdkRgbInfo *image_info,
{
gint j;
- for (j = 0; j <= i; j++)
+ for (j = 0; j < i; j++)
gdk_image_unref (image_info->static_image[i]);
return FALSE;