Remove unused string copy from procmsg_msg_exist().
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 4 Sep 2018 22:17:59 +0000 (00:17 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 4 Sep 2018 22:17:59 +0000 (00:17 +0200)
src/procmsg.c

index e484700..df05e9b 100644 (file)
@@ -531,14 +531,11 @@ FILE *procmsg_open_message(MsgInfo *msginfo)
 
 gboolean procmsg_msg_exist(MsgInfo *msginfo)
 {
-       gchar *path;
        gboolean ret;
 
        if (!msginfo) return FALSE;
 
-       path = folder_item_get_path(msginfo->folder);
        ret = !folder_item_is_msg_changed(msginfo->folder, msginfo);
-       g_free(path);
 
        return ret;
 }