view finch/libgnt/Makefile.am @ 24476:3d6fe79753c3

This should fix another crash I've seen. We weren't correctly cancelling the proxy connect when we destroyed the servconn because we were only calling msn_servconn_disconnect() if we had actually connected. So always call msn_servconn_disconnect() from msn_servconn_destroy() and let the disconnect function deal with only closing stuff that is actually open. Here's the backtrace: #0 0x0000000000000000 in ?? () #1 0x00000000005f95e0 in connect_cb (data=0x2ab92ef6e7b0, source=7, error_message=0x0) at servconn.c:185 #2 0x000000000056e7da in purple_proxy_connect_data_connected (connect_data=0x2ab92ef70260) at proxy.c:598 #3 0x000000000056e90d in socket_ready_cb (data=0x2ab92ef70260, source=7, cond=PURPLE_INPUT_WRITE) at proxy.c:657 #4 0x00000000004db70c in pidgin_io_invoke (source=0x2ab92ee4be50, condition=G_IO_OUT, data=0x2ab92dfd3130) at gtkeventloop.cc:79 In frame 1, servconn is not valid (it has already been freed)
author Mark Doliner <mark@kingant.net>
date Tue, 18 Nov 2008 07:32:23 +0000
parents 35621ae24544
children ff29208e03ef e2e57d3c0578
line wrap: on
line source

EXTRA_DIST=genmarshal

SUBDIRS = . wms
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gnt.pc

lib_LTLIBRARIES = libgnt.la

BUILT_SOURCES = gntmarshal.h

libgnt_la_SOURCES = \
	gntmarshal.c \
	gntwidget.c \
	gntbindable.c \
	gntbox.c \
	gntbutton.c \
	gntcheckbox.c \
	gntclipboard.c \
	gntcolors.c \
	gntcombobox.c \
	gntentry.c \
	gntfilesel.c \
	gntkeys.c \
	gntlabel.c \
	gntline.c \
	gntmenu.c \
	gntmenuitem.c \
	gntmenuitemcheck.c \
	gntslider.c \
	gntstyle.c \
	gnttextview.c \
	gnttree.c \
	gntutils.c \
	gntwindow.c \
	gntwm.c \
	gntws.c \
	gntmain.c

libgnt_la_headers = \
	gntwidget.h \
	gntbindable.h \
	gntbox.h \
	gntbutton.h \
	gntcheckbox.h \
	gntclipboard.h \
	gntcolors.h \
	gntcombobox.h \
	gntentry.h \
	gntfilesel.h \
	gntkeys.h \
	gntlabel.h \
	gntline.h \
	gntmarshal.h \
	gntmenu.h \
	gntmenuitem.h \
	gntmenuitemcheck.h \
	gntslider.h \
	gntstyle.h \
	gnttextview.h \
	gnttree.h \
	gntutils.h \
	gntwindow.h \
	gntwm.h \
	gntws.h \
	gnt.h

CLEANFILES = \
	gntmarshal.h \
	gntmarshal.c

gntmarshal.c: $(srcdir)/genmarshal gntmarshal.h
	echo "#include \"gntmarshal.h\"" > $@
	glib-genmarshal --prefix=gnt_closure_marshal --body $(srcdir)/genmarshal >> $@

gntmarshal.h: $(srcdir)/genmarshal
	glib-genmarshal --prefix=gnt_closure_marshal --header $(srcdir)/genmarshal > $@

libgnt_laincludedir=$(includedir)/gnt
libgnt_lainclude_HEADERS = \
	$(libgnt_la_headers)

libgnt_la_DEPENDENCIES = 
libgnt_la_LDFLAGS = -export-dynamic -version_info $(GNT_LT_VERSION_INFO) -no-undefined
libgnt_la_LIBADD = \
	$(GLIB_LIBS) \
	$(GNT_LIBS) \
	$(LIBXML_LIBS) \
	$(PY_LIBS)

AM_CPPFLAGS = \
	$(GLIB_CFLAGS) \
	$(GNT_CFLAGS) \
	$(DEBUG_CFLAGS) \
	$(LIBXML_CFLAGS) \
	$(PY_CFLAGS)