summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2010-12-14 11:43:41 +0100
committerportix <portix@gmx.net>2010-12-14 11:43:41 +0100
commitd0c36a391331d321e26983887ee4910485a118ed (patch)
treee8b0ec7266ee7f645d61154e40e5da7d440aacc1 /src/session.c
parent37599008e5da021e24d26c9e3dd01030f2c78dfc (diff)
downloaddwb-d0c36a391331d321e26983887ee4910485a118ed.zip
remove dwb_free in most cases, clear status bar
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/session.c b/src/session.c
index 816d2337..4017f1fd 100644
--- a/src/session.c
+++ b/src/session.c
@@ -13,7 +13,7 @@ dwb_session_get_groups() {
char *content = dwb_util_get_file_content(dwb.files.session);
if (content) {
groups = g_regex_split_simple("^g:", content, G_REGEX_MULTILINE, G_REGEX_MATCH_NOTEMPTY);
- dwb_free(content);
+ free(content);
}
return groups;
}/*}}}*/
@@ -34,7 +34,7 @@ dwb_session_get_group(const char *name) {
i++;
}
g_strfreev(groups);
- dwb_free(group);
+ FREE(group);
}
return content;
}/*}}}*/
@@ -65,7 +65,8 @@ dwb_session_list() {
g_strfreev(group);
}
g_strfreev(content);
- dwb_free(path);
+ FREE(path);
+
exit(EXIT_SUCCESS);
}/*}}}*/
@@ -99,7 +100,7 @@ dwb_session_restore(const char *name) {
WebKitWebHistoryItem *item = webkit_web_history_item_new_with_data(line[1], line[2]);
webkit_web_back_forward_list_add_item(bf_list, item);
last = current;
- dwb_free(uri);
+ FREE(uri);
uri = g_strdup(line[1]);
}
if (i == length && lastweb)
@@ -154,7 +155,7 @@ dwb_session_save(const char *name) {
}
i++;
}
- dwb_free(group);
+ FREE(group);
g_strfreev(groups);
}
dwb_util_set_file_content(dwb.files.session, buffer->str);