]> Pileus Git - ~andy/gtk/blobdiff - gdk/gdkgc.c
[ Merges from gtk-1-2 ]
[~andy/gtk] / gdk / gdkgc.c
index 470c35867569a73c2bfe103ced98f2c1c89ff86b..8b6e4fd0ed350dbd7b7f553a293b59a1a37235af 100644 (file)
@@ -286,6 +286,7 @@ gdk_gc_unref (GdkGC *gc)
   GdkGCPrivate *private = (GdkGCPrivate*) gc;
   
   g_return_if_fail (gc != NULL);
+  g_return_if_fail (private->ref_count > 0);
   
   if (private->ref_count > 1)
     private->ref_count -= 1;