From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] XCloseDisplay already calls XrmDestroyDatabase Date: Sun, 17 May 2009 17:40:50 -0400 Message-ID: References: <19e566510808190319r454900a7sc3b5a4e9d6d68f95@mail.gmail.com> <19e566510808200117y21e78086la6240ad72b676cd7@mail.gmail.com> <19e566510808211140n56bec8e7l7ac7d6ae156e29eb@mail.gmail.com> <87k5eataqu.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242596544 16142 80.91.229.12 (17 May 2009 21:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 May 2009 21:42:24 +0000 (UTC) Cc: =?utf-8?Q?=C4=B0smail_D=C3=B6nm?=, Chong Yidong , emacs-devel@gnu.org, =?utf-8?Q?ez?= To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 17 23:42:16 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M5o7P-0001JP-Mr for ged-emacs-devel@m.gmane.org; Sun, 17 May 2009 23:42:12 +0200 Original-Received: from localhost ([127.0.0.1]:36172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5o7M-0005hU-4E for ged-emacs-devel@m.gmane.org; Sun, 17 May 2009 17:42:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5o6L-00054Q-Li for emacs-devel@gnu.org; Sun, 17 May 2009 17:40:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5o6G-00051e-Vc for emacs-devel@gnu.org; Sun, 17 May 2009 17:40:57 -0400 Original-Received: from [199.232.76.173] (port=37378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5o6G-00051V-Oq for emacs-devel@gnu.org; Sun, 17 May 2009 17:40:52 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:35015 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M5o6G-00041q-0J for emacs-devel@gnu.org; Sun, 17 May 2009 17:40:52 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAFAIchEEpMCovv/2dsb2JhbACBT808hAEFhWqCOA X-IronPort-AV: E=Sophos;i="4.41,208,1241409600"; d="scan'208";a="38714157" Original-Received: from 76-10-139-239.dsl.teksavvy.com (HELO ceviche.home) ([76.10.139.239]) by ironport2-out.teksavvy.com with ESMTP; 17 May 2009 17:40:50 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3ED8670017; Sun, 17 May 2009 17:40:50 -0400 (EDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Thu, 14 May 2009 08:48:56 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110957 Archived-At: >> If we remove the XrmDestroyDatabase call unconditionally, then it >> causes a memory leak when used with a newer libX11. But that would >> be better than crashing when used with an older one. > Or maybe we can dissociate the resource database from the display > before closing it. > #ifdef HAVE_XRMSETDATABASE > XrmSetDatabase (dpyinfo->display, NULL); > #else dpyinfo-> display->db = NULL; > #endif > Then we can ignore the difference of libX11 at least for normal close. Sounds OK as well. Stefan