grim/guifications2

Fix a leak when the contents of the theme aren't valid XML.
org.guifications.gf2
2009-04-12, Paul Aurich
71b2b4201b86
Fix a leak when the contents of the theme aren't valid XML.

==2501== 7,153 bytes in 1 blocks are definitely lost in loss record 1,756 of 1,861
==2501== at 0x04c278ae: malloc (vg_replace_malloc.c:207)
==2501== by 0x09b122ab: g_file_get_contents (gfileutils.c:613)
==2501== by 0x112b7ba6: gf_theme_new_from_file (gf_theme.c:83)
==2501== by 0x112b7df9: gf_theme_probe (gf_theme.c:334)
==2501== by 0x112b8001: gf_themes_probe (gf_theme.c:372)
==2501== by 0x112beae6: gf_load (guifications.c:58)
==2501== by 0x07d1890b: purple_plugin_load (plugin.c:616)
==2501== by 0x07d193a0: purple_plugins_load_saved (plugin.c:1314)
==2501== by 0x00483e86: main (gtkmain.c:807)
#
# Makefile.mingw
#
# Description: Makefile for win32 (mingw) guifications 2
#
#
# PATHS
#
GF_SRC := ./src
GF_PIXMAPS := ./pixmaps
GF_THEMES := ./themes
GF_PO := ./po
GF_TOP := .
-include $(GF_TOP)/local.mak
PIDGIN_TREE_TOP ?= ../../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
##
## VARIABLE DEFINITIONS
##
GF_VERSION := $(shell cat ./VERSION)
PIDGIN_VERSION := $(shell cat $(PIDGIN_TREE_TOP)/VERSION)
.PHONY: all install installer clean
all:
$(MAKE) -C $(GF_SRC) -f Makefile.mingw
$(MAKE) -C $(GF_PO) -f Makefile.mingw
gf_config.h: gf_config.h.mingw
cp gf_config.h.mingw gf_config.h
install: all
$(MAKE) -C $(GF_PIXMAPS) -f Makefile.mingw install
$(MAKE) -C $(GF_THEMES) -f Makefile.mingw install
$(MAKE) -C $(GF_SRC) -f Makefile.mingw install
$(MAKE) -C $(GF_PO) -f Makefile.mingw install
installer: all
$(MAKENSIS) -DGUIFICATIONS_VERSION="$(GF_VERSION)" -DPIDGIN_VERSION="$(PIDGIN_VERSION)" -DPIDGIN_TREE_TOP="$(PIDGIN_TREE_TOP)" guifications-installer.nsi
clean:
$(MAKE) -C $(GF_SRC) -f Makefile.mingw clean
rm -f gf_config.h guifications-*.exe