2007-09-20 [colin] 3.0.1cvs14
authorColin Leroy <colin@colino.net>
Thu, 20 Sep 2007 16:50:49 +0000 (16:50 +0000)
committerColin Leroy <colin@colino.net>
Thu, 20 Sep 2007 16:50:49 +0000 (16:50 +0000)
* src/printing.c
Fix a little leak

ChangeLog
PATCHSETS
configure.ac
src/printing.c

index ce8233f6374fc949d2a66b8bc44291339cfb8306..26a16bb93bcb590c4eb33732ff863e530eac3106 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-20 [colin]     3.0.1cvs14
+
+       * src/printing.c
+               Fix a little leak
+
 2007-09-20 [holger]    3.0.1cvs13
 
        * src/printing.c
index 1ae0b3ab87a550b8a99a896e1ff91ac8ba844c0c..fca9c12b87bfa4825a4583ffa0762b454d63b7d7 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.36.2.112 -r 1.36.2.113 src/common/utils.c;  ) > 3.0.1cvs11.patchset
 ( cvs diff -u -r 1.17.2.16 -r 1.17.2.17 po/ru.po;  ) > 3.0.1cvs12.patchset
 ( cvs diff -u -r 1.1.2.6 -r 1.1.2.7 src/printing.c;  ) > 3.0.1cvs13.patchset
+( cvs diff -u -r 1.1.2.7 -r 1.1.2.8 src/printing.c;  ) > 3.0.1cvs14.patchset
index 04c8113102bfe8c2179cf5b8522d1e0714b41b87..53319a9f9bff7fb745242c225e36a46fe4736017 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=13
+EXTRA_VERSION=14
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index e86f9ccf977abe24bcf9f3fe851c7f56e7c12236..c0f8851ec84c7906807ee025679200662d63de2d 100644 (file)
@@ -838,6 +838,8 @@ static void printing_layout_set_text_attributes(PrintData *print_data, GtkPrintC
                open_attrs = g_slist_delete_link(open_attrs, attr_walk);
                break;
              }
+              if (color)
+                gdk_color_free(color);
            }
          }
          if(!found)
@@ -858,6 +860,8 @@ static void printing_layout_set_text_attributes(PrintData *print_data, GtkPrintC
                open_attrs = g_slist_delete_link(open_attrs, attr_walk);
                break;
              }
+              if (color)
+                gdk_color_free(color);
            }
          }
          if(!found)