Re: Can I use gtk_widget_unref() to releasetthe object created by gtk_invisible_new()?
On Tue, 2008-01-08 at 18:07 +0800, Brian Lu wrote:
Hi, experts,
I found following codes will crash in gnome 2.21 environment:
...
GtkWidget *foo = gtk_invisible_new();
gtk_widget_unref(foo);
...
But it works well if gtk_widget_unref() is replaced with
gtk_widget_destroy().
Does that mean that we can't use gtk_widget_unref() on such object and
we can only
use gtk_widget_destroy() to release it?
I suspect it's because you never called
gtk_widget_ref on foo before you unref'd
it.
--
Shaun
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list
Relevant Pages
- Can I use gtk_widget_unref() to releasetthe object created by gtk_invisible_new()?
... I found following codes will crash in gnome 2.21 environment: ... (GNOME) - Re: Integral-Brakes from BMW unreliable (YouTube Video)
... At what time did the crash occur and at what time were the codes ... Does the sporadic recording of codes relate to ... falsely without a failure being present? ... (rec.motorcycles) - Re: Corporate Humour
... There is a third environment: ... Enron/Andersen thing to petty crap where some overling can "change" the policy, use vague phrases in memos and letters, and then after whatever has happened, "change back" the policy and if the higher-ups back the guy up, then he gets away with it. ... If there is a market for Y, and sales says "There is a market for Y" then the orders were passed on. ... IBM was very much like a military organization with dress codes, behavior codes, process codes/regulations/policies/etc. ... (sci.research.careers) - Re: exception error when accessing SQL database
... which is predefined user in Windows ... what you mean by asp.net environment? ... > together with the sql codes, ... >> You still did not post actual exception here. ... (microsoft.public.data.ado) - Re: Integral-Brakes from BMW unreliable (YouTube Video)
... Month later the bike was seized by the German Criminal ... At what time did the crash occur and at what time were the codes ... Does the sporadic recording of codes relate to ... (rec.motorcycles) |
|