From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Bastien Nocera To: BlueZ development In-Reply-To: <1185310470.7111.64.camel@violet> References: <1185293793.3641.129.camel@cookie.hadess.net> <1185294005.3641.132.camel@cookie.hadess.net> <1185310470.7111.64.camel@violet> Date: Tue, 24 Jul 2007 22:12:12 +0100 Message-Id: <1185311532.3641.178.camel@cookie.hadess.net> Mime-Version: 1.0 Subject: Re: [Bluez-devel] [PATCH] Make BluetoothClient work on all adapters Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net On Tue, 2007-07-24 at 22:54 +0200, Marcel Holtmann wrote: > Hi Bastien, > > > > With this patch, we can now pass a NULL as the adapter to work with all > > > the adapters. This is for use in the upcoming patch for the selector > > > widget. > > > > And a tiny patch to fix the test-client's compilation. > > what is wrong with providing a convenience wrapper around the GObject > unref function? unref isn't destroy. Destroy, as used in GTK+ for widgets (it's not used in glib) means you destroy the widget, drop the refcount to 0, clean up, free the memory, etc. Unref means you reduce the refcount by 1. If you have > 1 reference before running the command, then nothing happens apart from the refcount being updates. Wrapping a _destroy() function to call _unref() means you're mixing two semantics. When you call _destroy() the object isn't destroyed, it's refcount is reduced... -- Bastien Nocera ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel