Browse Source

mconn-crypt: explicitly release RSA key in dispose

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
49847f02e8
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/mconn-crypt.c

+ 5
- 1
src/mconn-crypt.c View File

@ -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);
}


Loading…
Cancel
Save