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"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>Finch Reference Manual</title>
<abstract>
<title>Finch &version;</title>
<para>
GNT (GLib Ncurses Toolkit) is an ncurses toolkit for creating text-mode
graphical user interfaces in a fast and easy way.
</para>
<para>
Finch is a text-mode frontend to libpurple, built using libgnt.
</para>
</abstract>
</bookinfo>
<part id="finch">
<title>Finch API Reference</title>
<xi:include href="xml/gntaccount.xml" />
<xi:include href="xml/gntblist.xml" />
<xi:include href="xml/gntconn.xml" />
<xi:include href="xml/gntconv.xml" />
<xi:include href="xml/gntdebug.xml" />
<xi:include href="xml/gntxfer.xml" />
<xi:include href="xml/gntidle.xml" />
<xi:include href="xml/gntlog.xml" />
<xi:include href="xml/gntmedia.xml" />
<xi:include href="xml/gntmenuutil.xml" />
<xi:include href="xml/gntnotify.xml" />
<xi:include href="xml/gntplugin.xml" />
<xi:include href="xml/gntprefs.xml" />
<xi:include href="xml/gntrequest.xml" />
<xi:include href="xml/gntroomlist.xml" />
<xi:include href="xml/gntstatus.xml" />
<xi:include href="xml/gntui.xml" />
<xi:include href="xml/finch.xml" />
</part>
<part>
<title>Appendices</title>
<index id="api-index-full">
<title>API Index</title>
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
</index>
<index id="api-deprecated">
<title>Index of deprecated symbols</title>
<xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
</index>
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
</part>
</book>