Mercurial > audlegacy-plugins
changeset 2577:0db1da71c90c
Fix some plugins after the cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 May 2008 04:57:28 +0300 |
parents | bd3a24b39058 |
children | 09879415c666 |
files | src/hotkey/gui.c src/statusicon/si_ui.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotkey/gui.c Mon May 19 04:20:50 2008 +0300 +++ b/src/hotkey/gui.c Mon May 19 04:57:28 2008 +0300 @@ -39,6 +39,7 @@ #include <gdk/gdkx.h> #include <gdk/gdkkeysyms.h> +#include <audacious/plugin.h> #include <audacious/i18n.h> #include "plugin.h" @@ -620,7 +621,7 @@ HotkeyConfiguration * old; old = hotkey; hotkey = hotkey->next; - free(old); + g_free(old); } plugin_cfg->first.next = NULL; plugin_cfg->first.key = 0; @@ -632,8 +633,7 @@ { if (controls->hotkey.key) { if (hotkey->key) { - hotkey->next = (HotkeyConfiguration*) - malloc(sizeof (HotkeyConfiguration)); + hotkey->next = g_new(HotkeyConfiguration, 1); hotkey = hotkey->next; hotkey->next = NULL; }
--- a/src/statusicon/si_ui.c Mon May 19 04:20:50 2008 +0300 +++ b/src/statusicon/si_ui.c Mon May 19 04:57:28 2008 +0300 @@ -24,6 +24,7 @@ #include "si_common.h" #include "gtktrayicon.h" #include <audacious/ui_fileinfopopup.h> +#include <audacious/plugin.h> #include <audacious/i18n.h> #include <glib.h> #include <gdk/gdk.h>