]> Pileus Git - ~andy/gtk/commitdiff
Fix off-by-one error when destroying allocated segments on failure.
authorOwen Taylor <otaylor@redhat.com>
Sat, 18 Nov 2000 17:01:01 +0000 (17:01 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 18 Nov 2000 17:01:01 +0000 (17:01 +0000)
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)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkrgb.c

index f6f1a299a8738582a74ae2e4bcf1dae1cd454d27..ebd0968719ae19724da429c8287c767c8e56b527 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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)
+
 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
index f6f1a299a8738582a74ae2e4bcf1dae1cd454d27..ebd0968719ae19724da429c8287c767c8e56b527 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
index f6f1a299a8738582a74ae2e4bcf1dae1cd454d27..ebd0968719ae19724da429c8287c767c8e56b527 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
index f6f1a299a8738582a74ae2e4bcf1dae1cd454d27..ebd0968719ae19724da429c8287c767c8e56b527 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
index f6f1a299a8738582a74ae2e4bcf1dae1cd454d27..ebd0968719ae19724da429c8287c767c8e56b527 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
index f6f1a299a8738582a74ae2e4bcf1dae1cd454d27..ebd0968719ae19724da429c8287c767c8e56b527 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
index f6f1a299a8738582a74ae2e4bcf1dae1cd454d27..ebd0968719ae19724da429c8287c767c8e56b527 100644 (file)
@@ -1,3 +1,9 @@
+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)
+
 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
index 4aed5bf5d3cae03cbf38a7383935b405fb7040d8..aa24b3cfa8d526eaab4199067020df04709f6f0b 100644 (file)
@@ -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;