Fix a segfault in g_cancellable_cancel
authorMatthias Clasen <mclasen@redhat.com>
Mon, 6 Jul 2009 03:38:09 +0000 (23:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 6 Jul 2009 03:38:09 +0000 (23:38 -0400)
gio/gcancellable.c

index 8654883..88490b0 100644 (file)
@@ -519,7 +519,7 @@ g_cancellable_cancel (GCancellable *cancellable)
   GCancellablePrivate *priv;
 
   if (cancellable == NULL ||
-      priv->cancelled)
+      cancellable->priv->cancelled)
     return;
 
   priv = cancellable->priv;