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:
Jasper St. Pierre 2011-10-21 17:37:28 -04:00
parent dc5d2b83ef
commit be72b1d066

View File

@ -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);
}
/**