[rhythmbox] mtp: fix crash after failed album create/update
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] mtp: fix crash after failed album create/update
- Date: Mon, 27 Dec 2010 22:10:40 +0000 (UTC)
commit ae2f8b144750bc1f8fb658a21d5a6686d9074b0d
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Dec 28 08:07:39 2010 +1000
mtp: fix crash after failed album create/update
The libmtp album object is still in the hash table, so destroying it
is not a great idea.
plugins/mtpdevice/rb-mtp-thread.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/plugins/mtpdevice/rb-mtp-thread.c b/plugins/mtpdevice/rb-mtp-thread.c
index 8d498e4..da3ca4b 100644
--- a/plugins/mtpdevice/rb-mtp-thread.c
+++ b/plugins/mtpdevice/rb-mtp-thread.c
@@ -285,7 +285,6 @@ write_album_to_device (RBMtpThread *thread, LIBMTP_album_t *album, gboolean new_
{
if (new_album) {
if (LIBMTP_Create_New_Album (thread->device, album) != 0) {
- LIBMTP_destroy_album_t (album);
rb_debug ("LIBMTP_Create_New_Album failed..");
rb_mtp_thread_report_errors (thread, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]