[glib/wip/resources] GResource: Initialize ref_count to 1
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/resources] GResource: Initialize ref_count to 1
- Date: Tue, 10 Jan 2012 15:32:33 +0000 (UTC)
commit 3a1d02b7409f74e8a3f7b703977ddceb6d95b87a
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jan 10 16:14:36 2012 +0100
GResource: Initialize ref_count to 1
gio/gresource.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gresource.c b/gio/gresource.c
index 1b5def2..d9a8f60 100644
--- a/gio/gresource.c
+++ b/gio/gresource.c
@@ -97,6 +97,7 @@ g_resource_new_from_data (GBytes *data,
return NULL;
resource = g_new0 (GResource, 1);
+ resource->ref_count = 1;
resource->table = table;
return resource;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]