From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXRRH-0000Ab-J9 for qemu-devel@nongnu.org; Thu, 03 Sep 2015 06:08:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXRRE-0004FR-D8 for qemu-devel@nongnu.org; Thu, 03 Sep 2015 06:08:15 -0400 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:51223 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXRRD-0004En-RF for qemu-devel@nongnu.org; Thu, 03 Sep 2015 06:08:12 -0400 References: <1440670734-5616-1-git-send-email-pl@kamp.de> <1440670734-5616-5-git-send-email-pl@kamp.de> <1441274259.557.22.camel@redhat.com> From: Peter Lieven Message-ID: <55E81C09.9020504@kamp.de> Date: Thu, 3 Sep 2015 12:08:09 +0200 MIME-Version: 1.0 In-Reply-To: <1441274259.557.22.camel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/4] vnc: destroy server surface if no client is connected List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Am 03.09.2015 um 11:57 schrieb Gerd Hoffmann: > On Do, 2015-08-27 at 12:18 +0200, Peter Lieven wrote: >> if no client is connected there is no need to keep the server >> surface. Throw it away and replace it with a dummy surface to >> save memory. > No dummy surface please. Just set vd->server = NULL. I can do that, but I have to check for vd->server == NULL at some points then. Peter