|
|
@ -20,22 +20,20 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
--- ./panel/xfce_support.c.orig 2003-08-07 22:15:03.000000000 +0300
|
|
|
|
+++ ./panel/xfce_support.c 2003-11-09 16:55:51.000000000 +0200
|
|
|
|
@@ -955,10 +955,13 @@
|
|
|
|
static gboolean |
|
|
|
delayed_exec(ActionCommand *command) |
|
|
|
--- ./panel/xfce_support.c.orig 2003-11-18 12:43:55.000000000 +0200
|
|
|
|
+++ ./panel/xfce_support.c 2003-11-18 12:44:02.000000000 +0200
|
|
|
|
@@ -982,6 +982,7 @@
|
|
|
|
void |
|
|
|
exec_cmd (const char *cmd, gboolean in_terminal, gboolean use_sn) |
|
|
|
{ |
|
|
|
- real_exec_cmd(command->cmd, command->in_terminal, command->use_sn,
|
|
|
|
- command->silent);
|
|
|
|
+ if (command->cmd != NULL)
|
|
|
|
+ {
|
|
|
|
+ real_exec_cmd(command->cmd, command->in_terminal, command->use_sn,
|
|
|
|
+ command->silent);
|
|
|
|
+ g_free(command->cmd);
|
|
|
|
+ }
|
|
|
|
+ g_return_if_fail (cmd != NULL);
|
|
|
|
schedule_exec(cmd, in_terminal, use_sn, FALSE); |
|
|
|
} |
|
|
|
|
|
|
|
- g_free(command->cmd);
|
|
|
|
g_free(command); |
|
|
|
|
|
|
|
return(FALSE); |
|
|
|
@@ -989,5 +990,6 @@
|
|
|
|
void |
|
|
|
exec_cmd_silent (const char *cmd, gboolean in_terminal, gboolean use_sn) |
|
|
|
{ |
|
|
|
+ g_return_if_fail (cmd != NULL);
|
|
|
|
schedule_exec(cmd, in_terminal, use_sn, TRUE); |
|
|
|
} |