diff -Nru obexd-0.46/debian/changelog obexd-0.46/debian/changelog --- obexd-0.46/debian/changelog 2015-01-16 14:01:50.000000000 +0000 +++ obexd-0.46/debian/changelog 2015-03-17 04:26:52.000000000 +0000 @@ -1,3 +1,11 @@ +obexd (0.46-1ubuntu11) vivid; urgency=medium + + * debian/patches/avoid_double_free_error.patch: + - Avoid double free when starting on a device that doesn't really support + bluetooth (touch emulator) + + -- Ricardo Salveti de Araujo Tue, 17 Mar 2015 01:26:19 -0300 + obexd (0.46-1ubuntu10) vivid; urgency=medium * debian/patches/0001-irmc-Fix-phonebook-contacts-query.patch: diff -Nru obexd-0.46/debian/patches/avoid_double_free_error.patch obexd-0.46/debian/patches/avoid_double_free_error.patch --- obexd-0.46/debian/patches/avoid_double_free_error.patch 1970-01-01 00:00:00.000000000 +0000 +++ obexd-0.46/debian/patches/avoid_double_free_error.patch 2015-03-17 04:25:51.000000000 +0000 @@ -0,0 +1,13 @@ +Index: obexd-0.46/plugins/bluetooth.c +=================================================================== +--- obexd-0.46.orig/plugins/bluetooth.c ++++ obexd-0.46/plugins/bluetooth.c +@@ -584,7 +584,7 @@ static GSList *start(struct obex_server + if (io == NULL) { + error("bluetooth: unable to listen in channel %d: %s", + service->channel, err->message); +- g_error_free(err); ++ g_clear_error(&err); + } else { + l = g_slist_prepend(l, io); + DBG("listening on channel %d", service->channel); diff -Nru obexd-0.46/debian/patches/series obexd-0.46/debian/patches/series --- obexd-0.46/debian/patches/series 2015-01-16 14:01:00.000000000 +0000 +++ obexd-0.46/debian/patches/series 2015-03-17 04:25:07.000000000 +0000 @@ -5,3 +5,4 @@ backport_session_code.patch porting-phonebook-ebook-latest-eds.patch 0001-irmc-Fix-phonebook-contacts-query.patch +avoid_double_free_error.patch