From 700e551390a86ffdb92ddc061914ec7687658d18 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 28 Aug 2003 19:10:36 +0000 Subject: fix a bunch of memleaks from valgrind and stuff --- openbox/openbox.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/openbox.c') diff --git a/openbox/openbox.c b/openbox/openbox.c index 165d7229..8e61fa86 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -235,6 +235,7 @@ int main(int argc, char **argv) if (parse_load_rc(&doc, &node)) parse_tree(i, doc, node->xmlChildrenNode); /* we're done with parsing now, kill it */ + xmlFreeDoc(doc); parse_shutdown(i); menu_parse(); @@ -291,6 +292,10 @@ int main(int argc, char **argv) session_shutdown(); g_free(ob_sm_id); +#ifdef USE_LIBSN + sn_display_unref(ob_sn_display); +#endif + XCloseDisplay(ob_display); if (restart) { -- cgit v1.2.3