mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
You can have instance_real_class_bsa be non-NULL, but still the class not
Fri Sep 26 17:24:53 2003 Owen Taylor <otaylor@redhat.com> * gtype.c (g_type_instance_get_private): You can have instance_real_class_bsa be non-NULL, but still the class not be in the bsa. (Found by Kris Rietveld)
This commit is contained in:
@@ -3401,7 +3401,11 @@ g_type_instance_get_private (GTypeInstance *instance,
|
||||
* so figure the instances real class first
|
||||
*/
|
||||
if (instance_real_class_bsa)
|
||||
class = instance_real_class_get (instance);
|
||||
{
|
||||
class = instance_real_class_get (instance);
|
||||
if (!class)
|
||||
class = instance->g_class;
|
||||
}
|
||||
else
|
||||
class = instance->g_class;
|
||||
|
||||
|
Reference in New Issue
Block a user