Fix a segfault in g_cancellable_cancel

This commit is contained in:
Matthias Clasen 2009-07-05 23:38:09 -04:00
parent 66e9b50b2c
commit 563c55bb71

View File

@ -519,7 +519,7 @@ g_cancellable_cancel (GCancellable *cancellable)
GCancellablePrivate *priv;
if (cancellable == NULL ||
priv->cancelled)
cancellable->priv->cancelled)
return;
priv = cancellable->priv;