diff --git a/src/mconn-crypt.c b/src/mconn-crypt.c index b075b09..a0ee720 100644 --- a/src/mconn-crypt.c +++ b/src/mconn-crypt.c @@ -69,7 +69,11 @@ mconn_crypt_dispose (GObject *object) { MConnCrypt *self = (MConnCrypt *)object; - g_clear_pointer(&self->priv->key, RSA_free); + if (self->priv->key != NULL) + { + RSA_free(self->priv->key); + self->priv->key = NULL; + } G_OBJECT_CLASS (mconn_crypt_parent_class)->dispose (object); }