pidgin/pidgin

Fix a crash on shutdown in kwallet if the wallet was never opened.

The wallet instance variable was not initialized so if the wallet was never opened we were trying to delete and invalid pointer.

Also update the dispose method of the provider to close the wallet as the
tasks in the queue hold a reference to the provider instance as the source
object in their tasks.

Testing Done:
Ran locally with both the kwallet and secret service providers.

Reviewed at https://reviews.imfreedom.org/r/581/
<?xml version='1.0' encoding="ISO-8859-1"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
]>
<chapter id="chapter-signals-certificate">
<title>Certificate signals</title>
<refsect1 id="certificates.signals" role="signal_proto">
<title role="signal_proto.title">List of signals</title>
<synopsis>
&quot;<link linkend="certificates-certificate-stored">certificate-stored</link>&quot;
&quot;<link linkend="certificates-certificate-deleted">certificate-deleted</link>&quot;
</synopsis>
</refsect1>
<refsect1 id="certificates.signal-details" role="signals">
<title role="signals.title">Signal details</title>
<refsect2 id="certificates-certificate-stored" role="signal">
<title>The <literal>&quot;certificate-stored&quot;</literal> signal</title>
<programlisting>
void user_function (PurpleCertificatePool *pool,
const gchar *id,
gpointer data)
</programlisting>
<para>
Emitted when a pool stores a certificate. Connect to the pool instance.
</para>
<variablelist role="params">
<varlistentry>
<term><parameter>pool</parameter>&#160;:</term>
<listitem><simpara>Pool the certificate has been stored into.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>id</parameter>&#160;:</term>
<listitem><simpara>Key the certificate was stored under.</simpara></listitem>
</varlistentry>
</variablelist>
</refsect2>
<refsect2 id="certificates-certificate-deleted" role="signal">
<title>The <literal>&quot;certificate-deleted&quot;</literal> signal</title>
<programlisting>
void user_function (PurpleCertificatePool *pool,
const gchar *id,
gpointer data)
</programlisting>
<para>
Emitted when a pool deletes a certificate. Connect to the pool instance.
</para>
<variablelist role="params">
<varlistentry>
<term><parameter>pool</parameter>&#160;:</term>
<listitem><simpara>Pool the certificate was deleted from.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>id</parameter>&#160;:</term>
<listitem><simpara>Key that was deleted.</simpara></listitem>
</varlistentry>
</variablelist>
</refsect2>
</refsect1>
</chapter>