[gnome-control-center/gnome-3-8] sound: fix potential memory corruption
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] sound: fix potential memory corruption
- Date: Tue, 16 Apr 2013 10:15:43 +0000 (UTC)
commit ff00679b0972f649014aa42e85755fdd8a21cd95
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Mon Apr 8 13:43:24 2013 +0100
sound: fix potential memory corruption
https://bugzilla.gnome.org/show_bug.cgi?id=697555
panels/sound/gvc-sound-theme-chooser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/sound/gvc-sound-theme-chooser.c b/panels/sound/gvc-sound-theme-chooser.c
index 2aa68fc..79f1c65 100644
--- a/panels/sound/gvc-sound-theme-chooser.c
+++ b/panels/sound/gvc-sound-theme-chooser.c
@@ -671,7 +671,7 @@ update_theme (GvcSoundThemeChooser *chooser)
}
if (g_strcmp0 (last_theme, chooser->priv->current_theme) != 0) {
- g_free (chooser->priv->current_parent);
+ g_clear_pointer (&chooser->priv->current_parent, g_free);
if (load_theme_name (chooser->priv->current_theme,
&chooser->priv->current_parent) == FALSE) {
g_free (chooser->priv->current_theme);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]