Bug 818629: Don't use "g_free" as finalize function in xt_event_funcs - just let refcounting take care of cleaning up. r=karlt

This commit is contained in:
Daniel Holbert 2012-12-05 21:05:46 -08:00
parent e442ec79f6
commit 403abe8e05

View File

@ -137,7 +137,7 @@ static GSourceFuncs xt_event_funcs = {
xt_event_prepare,
xt_event_check,
xt_event_dispatch,
g_free,
NULL,
(GSourceFunc)NULL,
(GSourceDummyMarshal)NULL
};
@ -484,6 +484,7 @@ xt_client_xloop_create(void)
g_source_set_priority(gs, GDK_PRIORITY_EVENTS);
g_source_set_can_recurse(gs, TRUE);
tag = g_source_attach(gs, (GMainContext*)NULL);
g_source_unref(gs);
#ifdef VMS
cnumber = XConnectionNumber(xtdisplay);
#else