diff -Nru telepathy-mission-control-5-5.12.0/debian/changelog telepathy-mission-control-5-5.12.0/debian/changelog --- telepathy-mission-control-5-5.12.0/debian/changelog 2012-04-05 14:23:00.000000000 +0000 +++ telepathy-mission-control-5-5.12.0/debian/changelog 2012-07-28 17:08:32.000000000 +0000 @@ -1,3 +1,10 @@ +telepathy-mission-control-5 (1:5.12.0-0ubuntu2.1) precise-proposed; urgency=low + + * debian/patches/git_no_double_free.patch: + - backport upstream fix for double free bug (lp: #1024848) + + -- Sebastien Bacher Sat, 28 Jul 2012 18:37:21 +0200 + telepathy-mission-control-5 (1:5.12.0-0ubuntu2) precise; urgency=low * debian/control: Build-Depends on dh-apparmor (LP: #948481) diff -Nru telepathy-mission-control-5-5.12.0/debian/patches/git_no_double_free.patch telepathy-mission-control-5-5.12.0/debian/patches/git_no_double_free.patch --- telepathy-mission-control-5-5.12.0/debian/patches/git_no_double_free.patch 1970-01-01 00:00:00.000000000 +0000 +++ telepathy-mission-control-5-5.12.0/debian/patches/git_no_double_free.patch 2012-07-28 16:35:35.000000000 +0000 @@ -0,0 +1,26 @@ +From 0daa22ca3858138aee10f8bf46a07fd15c1fcf49 Mon Sep 17 00:00:00 2001 +From: Xavier Claessens +Date: Mon, 09 Jul 2012 10:35:01 +0000 +Subject: McdAccountManagerDefault: Fix a possible double free + +If the account is already in the hashtable, g_hash_table_insert() +will set @removed as value, but free it since the key already in +the table is kept. + +https://bugs.freedesktop.org/show_bug.cgi?id=51842 +--- +diff --git a/src/mcd-account-manager-default.c b/src/mcd-account-manager-default.c +index deae163..e156de1 100644 +--- a/src/mcd-account-manager-default.c ++++ b/src/mcd-account-manager-default.c +@@ -77,7 +77,7 @@ _delete_from_keyring (const McpAccountStorage *self, + { + /* flag the whole account as purged */ + gchar *removed = g_strdup (account); +- g_hash_table_insert (amd->removed_accounts, removed, removed); ++ g_hash_table_replace (amd->removed_accounts, removed, removed); + } + else + { +-- +cgit v0.9.0.2-2-gbebe diff -Nru telepathy-mission-control-5-5.12.0/debian/patches/series telepathy-mission-control-5-5.12.0/debian/patches/series --- telepathy-mission-control-5-5.12.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ telepathy-mission-control-5-5.12.0/debian/patches/series 2012-07-28 16:37:16.000000000 +0000 @@ -0,0 +1 @@ +git_no_double_free.patch