From patchwork Mon Jun 3 21:14:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Liguori X-Patchwork-Id: 248431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C71452C013D for ; Tue, 4 Jun 2013 07:15:20 +1000 (EST) Received: from localhost ([::1]:57442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujc62-0000cO-PF for incoming@patchwork.ozlabs.org; Mon, 03 Jun 2013 17:15:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujc5g-0000Zw-Tw for qemu-devel@nongnu.org; Mon, 03 Jun 2013 17:15:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ujc5c-0002hU-6y for qemu-devel@nongnu.org; Mon, 03 Jun 2013 17:14:56 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:55669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujc5c-0002hQ-3S for qemu-devel@nongnu.org; Mon, 03 Jun 2013 17:14:52 -0400 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 3 Jun 2013 17:14:51 -0400 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 3 Jun 2013 17:14:49 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 18EE938C804A for ; Mon, 3 Jun 2013 17:14:48 -0400 (EDT) Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r53LEmqL295574 for ; Mon, 3 Jun 2013 17:14:48 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r53LElIa018264 for ; Mon, 3 Jun 2013 18:14:48 -0300 Received: from localhost6.localdomain6 ([9.80.23.195]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r53LEj87018128; Mon, 3 Jun 2013 18:14:46 -0300 From: Anthony Liguori To: qemu-devel@nongnu.org Date: Mon, 3 Jun 2013 16:14:44 -0500 Message-Id: <1370294084-4576-1-git-send-email-aliguori@us.ibm.com> X-Mailer: git-send-email 1.8.0 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13060321-5806-0000-0000-000021824879 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 32.97.182.137 Cc: Anthony Liguori , Gerd Hoffman Subject: [Qemu-devel] [PATCH v2] gtk: don't use g_object_unref on GdkCursor X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It's not a GObject. Cc: Gerd Hoffman Reported-by: Michael Tokarev Signed-off-by: Anthony Liguori Reviewed-by: Gerd Hoffmann --- v1 -> v2 - Fix summary to agree with code (Peter) --- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/gtk.c b/ui/gtk.c index 8dc9041..3bc2842 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -377,7 +377,7 @@ static void gd_cursor_define(DisplayChangeListener *dcl, pixbuf, c->hot_x, c->hot_y); gdk_window_set_cursor(gtk_widget_get_window(s->drawing_area), cursor); g_object_unref(pixbuf); - g_object_unref(cursor); + gdk_cursor_unref(cursor); } static void gd_switch(DisplayChangeListener *dcl,