st-texture-cache: Unref each texture when we destroy the async load data
We ref the textures when we add them to the list, so we should unref them when we destroy the list.
This commit is contained in:
@ -348,7 +348,7 @@ texture_load_data_destroy (gpointer p)
|
|||||||
g_free (data->mimetype);
|
g_free (data->mimetype);
|
||||||
|
|
||||||
if (data->textures)
|
if (data->textures)
|
||||||
g_slist_free (data->textures);
|
g_slist_free_full (data->textures, (GDestroyNotify) g_object_unref);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user