[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Make sure icons is NULL in gnome_app_instance_init()
- Subject: [PATCH] Make sure icons is NULL in gnome_app_instance_init()
- From: marcus at freebsd.org (Joe Marcus Clarke)
- Date: Sat Apr 19 14:00:25 2003
Version: GNOME2.2.1 2.3.0
os_details: FreeBSD GNOME Project
Synopsis: [PATCH] Make sure icons is NULL in gnome_app_instance_init()
Description of Problem:
gnome-python applications initialize without going throught the full
gnomeui initialization. Therefore, the default-icon property is not
set. When a new GnomeApp is initialized, and this property is not set,
the icons pointer will not always be NULL. On systems, such as FreeBSD
-CURRENT, where extra malloc options have been added for debugging, this
pointer might be garbage after g_object_get. Therefore, initialize it
to NULL to avoid confusion (and crashes).
Steps to reproduce the problem:
1. Launch a gnome-python app (e.g. meld) after setting malloc options AJ
(abort and junk-fill pointers)
(Meld:62218): GLib-GObject-WARNING **: gobject.c:946: object class
`GnomeProgram' has no property named `default-icon'
Followed immediately by a seg fault.
The application will crash.
The application should not crash.
How often does this happen?
A patch will be attached that fixes this problem.
Visit your host, monkey.org