projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268bfcc
)
backend: fix double free of priv->font_name
author
Robert Bragg
<robert@linux.intel.com>
Wed, 30 Jun 2010 10:23:16 +0000
(11:23 +0100)
committer
Robert Bragg
<robert@linux.intel.com>
Wed, 30 Jun 2010 13:30:35 +0000
(14:30 +0100)
If the backend was disposed then priv->font_name would be freed but not
set to NULL and so if clutter_backend_get_font_name was then called it
would double free priv->font_name.
clutter/clutter-backend.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-backend.c
b/clutter/clutter-backend.c
index
db92e5d
..
83f6194
100644
(file)
--- a/
clutter/clutter-backend.c
+++ b/
clutter/clutter-backend.c
@@
-97,6
+97,7
@@
clutter_backend_dispose (GObject *gobject)
}
g_free (backend->priv->font_name);
+ backend->priv->font_name = NULL;
clutter_backend_set_font_options (backend, NULL);