[gnome-shell] st-texture-cache: Unref each texture when we destroy the async load data
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-texture-cache: Unref each texture when we destroy the async load data
- Date: Fri, 21 Oct 2011 21:43:29 +0000 (UTC)
commit be72b1d066a40db28aac0c0d38afa577be6f94a6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Oct 21 17:37:28 2011 -0400
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.
src/st/st-texture-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
index 466f1ba..2333cff 100644
--- a/src/st/st-texture-cache.c
+++ b/src/st/st-texture-cache.c
@@ -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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]