pidgin/pidgin

Fix some use-after-free.

16 months ago, Elliott Sales de Andrade
1d0c0fab2b72
Parents 0bedbacffa83
Children 27c5004a6c65
Fix some use-after-free.
--- a/libpurple/protocols/facebook/api.c Mon Nov 04 08:55:48 2019 -0600
+++ b/libpurple/protocols/facebook/api.c Tue Nov 05 20:21:00 2019 -0500
@@ -739,7 +739,6 @@
fb_util_debug(FB_UTIL_DEBUG_INFO, "HTTP Request (%p):", msg);
fb_util_debug(FB_UTIL_DEBUG_INFO, " Request URL: %s", url);
- fb_util_debug(FB_UTIL_DEBUG_INFO, " Request Data: %s", data);
return msg;
}
--- a/libpurple/savedstatuses.c Mon Nov 04 08:55:48 2019 -0600
+++ b/libpurple/savedstatuses.c Tue Nov 05 20:21:00 2019 -0500
@@ -692,7 +692,6 @@
saved_statuses = g_list_remove(saved_statuses, status);
creation_time = purple_savedstatus_get_creation_time(status);
g_hash_table_remove(creation_times, (gconstpointer)creation_time);
- free_saved_status(status);
schedule_save();
@@ -710,6 +709,8 @@
purple_signal_emit(purple_savedstatuses_get_handle(),
"savedstatus-deleted", status);
+
+ free_saved_status(status);
}
gboolean