forked from AuroraMiddleware/gtk
multiselection tests: Plug a leak
g_list_model_get_item is transfer full.
This commit is contained in:
parent
f94f325636
commit
ee96bc7185
@ -29,8 +29,11 @@ get (GListModel *model,
|
||||
guint position)
|
||||
{
|
||||
GObject *object = g_list_model_get_item (model, position);
|
||||
guint ret;
|
||||
g_assert (object != NULL);
|
||||
return GPOINTER_TO_UINT (g_object_get_qdata (object, number_quark));
|
||||
ret = GPOINTER_TO_UINT (g_object_get_qdata (object, number_quark));
|
||||
g_object_unref (object);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *
|
||||
|
Loading…
Reference in New Issue
Block a user