grim/purple-spasm

fix crash when disconnecting a spasm account but leaving the chat window open (PIDGIN-17578)

Testing Done:
Did the steps from the issue description while running in valgrind. No crash and no invalid read.

Bugs closed: PIDGIN-17578

Reviewed at https://reviews.imfreedom.org/r/1243/
project(
'purple-spasm',
'c',
version: '0.0.1',
)
add_project_arguments(
'-DDATADIR="@0@"'.format(get_option('datadir')),
'-DGETTEXT_PACKAGE="spasm"',
'-DLIBDIR="@0@"'.format(get_option('libdir')),
'-DPREFIX="@0@"'.format(get_option('prefix')),
'-DSPASM_VERSION="@0@"'.format(meson.project_version()),
language : 'c'
)
GLIB = dependency('glib-2.0', version: '>=2.40.0')
JSON_GLIB = dependency('json-glib-1.0')
SOUP = dependency('libsoup-2.4')
PURPLE = dependency('purple', version: '>=2.13.0')
subdir('icons')
subdir('src')