# HG changeset patch # User Matti Hamalainen # Date 1211162248 -10800 # Node ID 0db1da71c90cecb41a8b80cb2db628ee12a393f0 # Parent bd3a24b3905871fd1c15f44792353c3770388794 Fix some plugins after the cleanup. diff -r bd3a24b39058 -r 0db1da71c90c src/hotkey/gui.c --- 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 #include +#include #include #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; } diff -r bd3a24b39058 -r 0db1da71c90c src/statusicon/si_ui.c --- 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 +#include #include #include #include