mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 03:16:21 +00:00
Copy curr_status and free original in session.c
This commit is contained in:
@@ -397,7 +397,7 @@ session_check_autoaway(void)
|
|||||||
if (saved_status) {
|
if (saved_status) {
|
||||||
free(saved_status);
|
free(saved_status);
|
||||||
}
|
}
|
||||||
saved_status = curr_status;
|
saved_status = strdup(curr_status);
|
||||||
|
|
||||||
// send away presence with last activity
|
// send away presence with last activity
|
||||||
char *message = prefs_get_string(PREF_AUTOAWAY_MESSAGE);
|
char *message = prefs_get_string(PREF_AUTOAWAY_MESSAGE);
|
||||||
@@ -481,6 +481,7 @@ session_check_autoaway(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(curr_status);
|
||||||
prefs_free_string(mode);
|
prefs_free_string(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user