Re: [evolution-patches] partial fix for #60889 (and other spurious behavior possibly)



@@ -574,6 +587,8 @@ e_book_backend_file_changes_foreach_key 
        
        string_to_dbt (key, &id_dbt);
        memset (&vcard_dbt, 0, sizeof (vcard_dbt));
+       vcard_dbt.flags = DB_DBT_MALLOC;
+
        db_error = db->get (db, NULL, &id_dbt, &vcard_dbt, 0);
        
        if (db_error != 0) {
@@ -592,6 +607,8 @@ e_book_backend_file_changes_foreach_key 
                                                vcard_string);
 
                g_object_unref (contact);
+
+               g_free (vcard_dbt.data);
        }
 }
 
---

I guess it should be free () above, and not g_free (). Otherwise, looks
ok.

--
Hans Petter




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]