diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-08-20 23:24:19 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-08-20 23:24:19 +0200 |
commit | f5c598b518d1f906148534d015f50075d3e8242d (patch) | |
tree | 21dd70add5b366c3dd80641b77f6b18e0baa009e /src/dpiapi.c | |
parent | e98d02a01ffeb18ede86af025e51ae1ec011c75a (diff) | |
parent | 5f0fc0e48b8cbee7e1795935da0abff6627fd498 (diff) |
merge
Diffstat (limited to 'src/dpiapi.c')
-rw-r--r-- | src/dpiapi.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dpiapi.c b/src/dpiapi.c index cf32ed3f..2068146c 100644 --- a/src/dpiapi.c +++ b/src/dpiapi.c @@ -41,6 +41,7 @@ static void Dpiapi_dialog_answer_cb(BrowserWindow *bw, int answer) /* Send answer */ a_Capi_dpi_send_cmd(NULL, bw, cmd, dialog_server, 0); + dFree(cmd); } /* @@ -60,12 +61,12 @@ void a_Dpiapi_dialog(BrowserWindow *bw, char *server, char *dpip_tag) /* other options can be parsed the same way */ dpip_tag_len = strlen(dpip_tag); - question = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "msg"); - alt1 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt1"); - alt2 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt2"); - alt3 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt3"); - alt4 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt4"); - alt5 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt5"); + question = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "msg"); + alt1 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt1"); + alt2 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt2"); + alt3 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt3"); + alt4 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt4"); + alt5 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt5"); ret = a_Dialog_choice5(question, alt1, alt2, alt3, alt4, alt5); /* As choice5 is modal, call the callback function directly. */ |