Changeset 16198

Show
Ignore:
Timestamp:
04/24/08 10:13:22 (7 months ago)
Author:
piotras
Message:

Explicitly set and free GParamSpec array

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/core/midgard/src/mgdschema.c

    r15473 r16198  
    960960                                /* Set number of properties. 
    961961                                 * This way we gain performance for instance_init call */ 
    962                                 g_object_class_list_properties( 
    963                                                 G_OBJECT_GET_CLASS(G_OBJECT(foo)),  
    964                                                 &type_attr->class_nprop); 
     962                                GParamSpec **pspecs =  
     963                                        g_object_class_list_properties( 
     964                                                        G_OBJECT_GET_CLASS(G_OBJECT(foo)),  
     965                                                        &type_attr->class_nprop); 
     966                                g_free(pspecs); 
    965967                                g_object_unref(foo);  
    966968                        }