]> Pileus Git - ~andy/gtk/commitdiff
check if info->colormap != NULL before unref'ing it. It might have been
authorSven Neumann <sven@gimp.org>
Mon, 6 Aug 2001 15:52:46 +0000 (15:52 +0000)
committerSven Neumann <neo@src.gnome.org>
Mon, 6 Aug 2001 15:52:46 +0000 (15:52 +0000)
2001-08-06  Sven Neumann  <sven@gimp.org>

* gdk/gdkpango.c (gdk_pango_context_destroy):
check if info->colormap != NULL before unref'ing it. It might have
been set to NULL using gdk_pango_context_set_colormap().

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/gdkpango.c

index 87a002e5ca5142e959e8d227def8170614300d4e..68b6b44f2bec99b40b6685319fa781557774205b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-06  Sven Neumann  <sven@gimp.org>
+
+       * gdk/gdkpango.c (gdk_pango_context_destroy): 
+       check if info->colormap != NULL before unref'ing it. It might have
+       been set to NULL using gdk_pango_context_set_colormap().
+
 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
index 87a002e5ca5142e959e8d227def8170614300d4e..68b6b44f2bec99b40b6685319fa781557774205b 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-06  Sven Neumann  <sven@gimp.org>
+
+       * gdk/gdkpango.c (gdk_pango_context_destroy): 
+       check if info->colormap != NULL before unref'ing it. It might have
+       been set to NULL using gdk_pango_context_set_colormap().
+
 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
index 87a002e5ca5142e959e8d227def8170614300d4e..68b6b44f2bec99b40b6685319fa781557774205b 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-06  Sven Neumann  <sven@gimp.org>
+
+       * gdk/gdkpango.c (gdk_pango_context_destroy): 
+       check if info->colormap != NULL before unref'ing it. It might have
+       been set to NULL using gdk_pango_context_set_colormap().
+
 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
index 87a002e5ca5142e959e8d227def8170614300d4e..68b6b44f2bec99b40b6685319fa781557774205b 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-06  Sven Neumann  <sven@gimp.org>
+
+       * gdk/gdkpango.c (gdk_pango_context_destroy): 
+       check if info->colormap != NULL before unref'ing it. It might have
+       been set to NULL using gdk_pango_context_set_colormap().
+
 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
index 87a002e5ca5142e959e8d227def8170614300d4e..68b6b44f2bec99b40b6685319fa781557774205b 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-06  Sven Neumann  <sven@gimp.org>
+
+       * gdk/gdkpango.c (gdk_pango_context_destroy): 
+       check if info->colormap != NULL before unref'ing it. It might have
+       been set to NULL using gdk_pango_context_set_colormap().
+
 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
index 87a002e5ca5142e959e8d227def8170614300d4e..68b6b44f2bec99b40b6685319fa781557774205b 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-06  Sven Neumann  <sven@gimp.org>
+
+       * gdk/gdkpango.c (gdk_pango_context_destroy): 
+       check if info->colormap != NULL before unref'ing it. It might have
+       been set to NULL using gdk_pango_context_set_colormap().
+
 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
index 87a002e5ca5142e959e8d227def8170614300d4e..68b6b44f2bec99b40b6685319fa781557774205b 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-06  Sven Neumann  <sven@gimp.org>
+
+       * gdk/gdkpango.c (gdk_pango_context_destroy): 
+       check if info->colormap != NULL before unref'ing it. It might have
+       been set to NULL using gdk_pango_context_set_colormap().
+
 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
index 4eeae8face98072316f1c8c1f9b0673683e621ae..d4f11d9876e8c2b8bef4054277de055b22b3e7cc 100644 (file)
@@ -52,7 +52,8 @@ static void gdk_pango_get_item_properties (PangoItem      *item,
 static void
 gdk_pango_context_destroy (GdkPangoContextInfo *info)
 {
-  gdk_colormap_unref (info->colormap);
+  if (info->colormap)
+    gdk_colormap_unref (info->colormap);
   g_free (info);
 }
 
@@ -336,7 +337,7 @@ gdk_draw_layout_line_with_colors (GdkDrawable      *drawable,
 }
 
 /**
- * gdk_draw_layout:
+ * gdk_draw_layout_with_colors:
  * @drawable:  the drawable on which to draw string
  * @gc:        base graphics context to use
  * @x:         the X position of the left of the layout (in pixels)