(maybe) bug in bonobo-clock-control.c



Hi,
    While looking at the samples I found this strange looking code
Line 96>
 /* Create the properties. */
 pb = bonobo_property_bag_new (get_prop, set_prop, clock);
 bonobo_control_set_property_bag (control, pb);
 bonobo_object_unref (BONOBO_OBJECT (pb));

 bonobo_property_bag_add (pb, "running", PROP_RUNNING,
     BONOBO_ARG_BOOLEAN, NULL,
     "Whether or not the clock is running", 0);

Should there really be use of pb in bonobo_property_bag_add()?
or should the _unref() call be after the bag_add() call ...





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]