[gnome-settings-daemon] media-keys: Use g_clear_pointer() in OSD
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Use g_clear_pointer() in OSD
- Date: Sat, 12 Jan 2013 21:13:30 +0000 (UTC)
commit fa55a9a6b6bc2e629323344b3d95f95097da1958
Author: Bastien Nocera <hadess hadess net>
Date: Sat Jan 12 22:11:06 2013 +0100
media-keys: Use g_clear_pointer() in OSD
plugins/media-keys/gsd-osd-window.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/plugins/media-keys/gsd-osd-window.c b/plugins/media-keys/gsd-osd-window.c
index 5d818bf..64dd7fd 100644
--- a/plugins/media-keys/gsd-osd-window.c
+++ b/plugins/media-keys/gsd-osd-window.c
@@ -761,11 +761,7 @@ gsd_osd_window_finalize (GObject *object)
window = GSD_OSD_WINDOW (object);
g_clear_object (&window->priv->icon);
-
- if (window->priv->volume_label) {
- g_free (window->priv->volume_label);
- window->priv->volume_label = NULL;
- }
+ g_clear_pointer (&window->priv->volume_label, g_free);
if (window->priv->monitors_changed_id > 0) {
GdkScreen *screen;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]