summaryrefslogtreecommitdiff
path: root/sensors-applet/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sensors-applet/main.c')
-rw-r--r--sensors-applet/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sensors-applet/main.c b/sensors-applet/main.c
index 4b820ca..7be6464 100644
--- a/sensors-applet/main.c
+++ b/sensors-applet/main.c
@@ -28,10 +28,11 @@ static gboolean sensors_applet_fill(MatePanelApplet *applet,
const gchar *iid,
gpointer data) {
- SensorsApplet *sensors_applet;
gboolean retval = FALSE;
if (strcmp(iid, "SensorsApplet") == 0) {
+ SensorsApplet *sensors_applet;
+
sensors_applet = g_new0(SensorsApplet, 1);
sensors_applet->applet = applet;
sensors_applet_init(sensors_applet);