mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
Fix g2g_object_class_list_properties() so that num_properties gets set.
Original commit message from CVS: Fix g2g_object_class_list_properties() so that num_properties gets set.
This commit is contained in:
parent
0ab71b3df2
commit
6d077dbe3d
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,7 @@ g2g_object_class_list_properties(GtkObjectClass *oclass,guint *n_properties) {
|
|||
int i;
|
||||
|
||||
args = gtk_object_query_args (type, &flags, &num_args);
|
||||
// FIXME: args and flags need to be freed.
|
||||
|
||||
params = g_new0(GParamSpec *,num_args);
|
||||
for (i=0;i<num_args;i++) {
|
||||
|
@ -127,6 +128,8 @@ g2g_object_class_list_properties(GtkObjectClass *oclass,guint *n_properties) {
|
|||
params[i]->flags = flags[i];
|
||||
}
|
||||
|
||||
*n_properties = num_args;
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue