Commit 90c7ea0b authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

assert ref_count>0.

Wed Jan 27 09:19:07 1999  Tim Janik  <timj@gtk.org>

        * gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
parent 8e979f59
Wed Jan 27 09:19:07 1999 Tim Janik <timj@gtk.org>
* gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com> Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}): * gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}):
......
Wed Jan 27 09:19:07 1999 Tim Janik <timj@gtk.org>
* gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com> Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}): * gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}):
......
Wed Jan 27 09:19:07 1999 Tim Janik <timj@gtk.org>
* gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com> Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}): * gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}):
......
Wed Jan 27 09:19:07 1999 Tim Janik <timj@gtk.org>
* gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com> Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}): * gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}):
......
Wed Jan 27 09:19:07 1999 Tim Janik <timj@gtk.org>
* gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com> Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}): * gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}):
......
Wed Jan 27 09:19:07 1999 Tim Janik <timj@gtk.org>
* gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com> Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}): * gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}):
......
Wed Jan 27 09:19:07 1999 Tim Janik <timj@gtk.org>
* gdk/gdkcolor.c (gdk_colormap_unref): assert ref_count>0.
Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com> Mon Jan 25 20:05:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}): * gtk/gtkwidget.c (gtk_widget_set_{visual,colormap}):
......
...@@ -162,6 +162,7 @@ GdkColormap* ...@@ -162,6 +162,7 @@ GdkColormap*
gdk_colormap_ref (GdkColormap *cmap) gdk_colormap_ref (GdkColormap *cmap)
{ {
GdkColormapPrivate *private = (GdkColormapPrivate *)cmap; GdkColormapPrivate *private = (GdkColormapPrivate *)cmap;
g_return_val_if_fail (cmap != NULL, NULL); g_return_val_if_fail (cmap != NULL, NULL);
private->ref_count += 1; private->ref_count += 1;
...@@ -172,7 +173,9 @@ void ...@@ -172,7 +173,9 @@ void
gdk_colormap_unref (GdkColormap *cmap) gdk_colormap_unref (GdkColormap *cmap)
{ {
GdkColormapPrivate *private = (GdkColormapPrivate *)cmap; GdkColormapPrivate *private = (GdkColormapPrivate *)cmap;
g_return_if_fail (cmap != NULL); g_return_if_fail (cmap != NULL);
g_return_if_fail (private->ref_count > 0);
private->ref_count -= 1; private->ref_count -= 1;
if (private->ref_count == 0) if (private->ref_count == 0)
......
...@@ -162,6 +162,7 @@ GdkColormap* ...@@ -162,6 +162,7 @@ GdkColormap*
gdk_colormap_ref (GdkColormap *cmap) gdk_colormap_ref (GdkColormap *cmap)
{ {
GdkColormapPrivate *private = (GdkColormapPrivate *)cmap; GdkColormapPrivate *private = (GdkColormapPrivate *)cmap;
g_return_val_if_fail (cmap != NULL, NULL); g_return_val_if_fail (cmap != NULL, NULL);
private->ref_count += 1; private->ref_count += 1;
...@@ -172,7 +173,9 @@ void ...@@ -172,7 +173,9 @@ void
gdk_colormap_unref (GdkColormap *cmap) gdk_colormap_unref (GdkColormap *cmap)
{ {
GdkColormapPrivate *private = (GdkColormapPrivate *)cmap; GdkColormapPrivate *private = (GdkColormapPrivate *)cmap;
g_return_if_fail (cmap != NULL); g_return_if_fail (cmap != NULL);
g_return_if_fail (private->ref_count > 0);
private->ref_count -= 1; private->ref_count -= 1;
if (private->ref_count == 0) if (private->ref_count == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment