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:
parent
dc5d2b83ef
commit
be72b1d066
@ -348,7 +348,7 @@ texture_load_data_destroy (gpointer p)
|
||||
g_free (data->mimetype);
|
||||
|
||||
if (data->textures)
|
||||
g_slist_free (data->textures);
|
||||
g_slist_free_full (data->textures, (GDestroyNotify) g_object_unref);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user