* src/summaryview.c
* src/prefs_themes.c
* src/messageview.c
Fix some leaks
+2004-11-15 [colin] 0.9.12cvs146.11
+
+ * src/summaryview.c
+ * src/prefs_themes.c
+ * src/messageview.c
+ Fix some leaks
+
2004-11-15 [colin] 0.9.12cvs146.10
* src/codeconv.c
2004-11-15 [colin] 0.9.12cvs146.10
* src/codeconv.c
( cvs diff -u -r 1.213.2.21 -r 1.213.2.22 src/folder.c; cvs diff -u -r 1.49.2.20 -r 1.49.2.21 src/procmime.c; ) > 0.9.12cvs146.8.patchset
( cvs diff -u -r 1.96.2.34 -r 1.96.2.35 src/textview.c; ) > 0.9.12cvs146.9.patchset
( cvs diff -u -r 1.65.2.18 -r 1.65.2.19 src/codeconv.c; ) > 0.9.12cvs146.10.patchset
( cvs diff -u -r 1.213.2.21 -r 1.213.2.22 src/folder.c; cvs diff -u -r 1.49.2.20 -r 1.49.2.21 src/procmime.c; ) > 0.9.12cvs146.8.patchset
( cvs diff -u -r 1.96.2.34 -r 1.96.2.35 src/textview.c; ) > 0.9.12cvs146.9.patchset
( cvs diff -u -r 1.65.2.18 -r 1.65.2.19 src/codeconv.c; ) > 0.9.12cvs146.10.patchset
+( cvs diff -u -r 1.395.2.40 -r 1.395.2.41 src/summaryview.c; cvs diff -u -r 1.3.2.11 -r 1.3.2.12 src/prefs_themes.c; cvs diff -u -r 1.94.2.33 -r 1.94.2.34 src/messageview.c; ) > 0.9.12cvs146.11.patchset
BINARY_AGE=0
EXTRA_VERSION=146
EXTRA_RELEASE=
BINARY_AGE=0
EXTRA_VERSION=146
EXTRA_RELEASE=
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
{
gchar *filename = NULL;
MsgInfo *msginfo;
{
gchar *filename = NULL;
MsgInfo *msginfo;
+ gchar *src, *dest, *tmp;
if (!messageview->msginfo) return;
msginfo = messageview->msginfo;
if (!messageview->msginfo) return;
msginfo = messageview->msginfo;
src = procmsg_get_message_file(msginfo);
if (copy_file(src, dest, TRUE) < 0) {
src = procmsg_get_message_file(msginfo);
if (copy_file(src, dest, TRUE) < 0) {
- alertpanel_error(_("Can't save the file `%s'."),
- g_path_get_basename(dest));
+ tmp = g_path_get_basename(dest);
+ alertpanel_error(_("Can't save the file `%s'."), tmp);
+ g_free(tmp);
}
g_free(dest);
g_free(src);
}
g_free(dest);
g_free(src);
gchar *theme_str;
gchar *alert_title = NULL;
AlertValue val = 0;
gchar *theme_str;
gchar *alert_title = NULL;
AlertValue val = 0;
theme_str = tdata->displayed;
theme_str = tdata->displayed;
+ tmp = g_path_get_basename(theme_str);
+
if (IS_SYSTEM_THEME(theme_str)) {
if (getuid() != 0) {
alertpanel_error(_("Only root can remove system themes"));
return;
}
if (IS_SYSTEM_THEME(theme_str)) {
if (getuid() != 0) {
alertpanel_error(_("Only root can remove system themes"));
return;
}
- alert_title = g_strdup_printf(_("Remove system theme '%s'"),
- g_path_get_basename(theme_str));
+ alert_title = g_strdup_printf(_("Remove system theme '%s'"), tmp);
}
if (NULL == alert_title) {
}
if (NULL == alert_title) {
- alert_title = g_strdup_printf(_("Remove theme '%s'"),
- g_path_get_basename(theme_str));
+ alert_title = g_strdup_printf(_("Remove theme '%s'"), tmp);
val = alertpanel(alert_title,
_("Are you sure you want to remove this theme?"),
_("No"), _("Yes"), _("Cancel"));
val = alertpanel(alert_title,
_("Are you sure you want to remove this theme?"),
_("No"), _("Yes"), _("Cancel"));
MsgInfo *msginfo;
gchar *filename = NULL;
gchar *src, *dest;
MsgInfo *msginfo;
gchar *filename = NULL;
gchar *src, *dest;
}
src = procmsg_get_message_file(msginfo);
}
src = procmsg_get_message_file(msginfo);
+ tmp = g_path_get_basename(dest);
+
if ( aval==0 ) { /* append */
if (append_file(src, dest, TRUE) < 0)
if ( aval==0 ) { /* append */
if (append_file(src, dest, TRUE) < 0)
- alertpanel_error(_("Can't save the file `%s'."),
- g_path_get_basename(dest));
+ alertpanel_error(_("Can't save the file `%s'."), tmp);
} else { /* overwrite */
if (copy_file(src, dest, TRUE) < 0)
} else { /* overwrite */
if (copy_file(src, dest, TRUE) < 0)
- alertpanel_error(_("Can't save the file `%s'."),
- g_path_get_basename(dest));
+ alertpanel_error(_("Can't save the file `%s'."), tmp);
if (!msginfo) break;
src = procmsg_get_message_file(msginfo);
if (append_file(src, dest, TRUE) < 0)
if (!msginfo) break;
src = procmsg_get_message_file(msginfo);
if (append_file(src, dest, TRUE) < 0)
- alertpanel_error(_("Can't save the file `%s'."),
- g_path_get_basename(dest));
+ alertpanel_error(_("Can't save the file `%s'."), tmp);
}
g_free(src);
}
g_free(dest);
}
g_free(src);
}
g_free(dest);
}
void summary_print(SummaryView *summaryview)
}
void summary_print(SummaryView *summaryview)