~ubuntu-branches/ubuntu/karmic/libgsf/karmic

« back to all changes in this revision

Viewing changes to gsf/gsf-doc-meta-data.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-06-30 15:46:51 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630154651-3wyy7y8c2zj7l5e0
Tags: 1.14.1-2ubuntu1
* Sync with Debian:
  Remaining Ubuntu Changes
  + Call intltool-update -p at build time to get a .pot file 

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
gsf_doc_prop_free (GsfDocProp *prop)
272
272
{
273
273
        if (NULL != prop) {
274
 
                g_free (prop->linked_to);
 
274
                if (prop->linked_to)
 
275
                        g_free (prop->linked_to);
 
276
 
275
277
                if (prop->val) {
276
278
                        g_value_unset (prop->val);
277
279
                        g_free (prop->val);
319
321
{
320
322
        g_return_if_fail (prop != NULL);
321
323
 
322
 
        if (val != prop->val) {
 
324
        if (prop->val != NULL) {
323
325
                g_value_unset (prop->val);
324
326
                g_free (prop->val);
 
327
        }
 
328
 
 
329
        if (val != prop->val)
325
330
                prop->val = val;
326
 
        }
327
331
}
328
332
 
329
333
/**
368
372
gsf_doc_prop_set_link (GsfDocProp *prop, char *link)
369
373
{
370
374
        g_return_if_fail (prop != NULL);
371
 
        if (link != prop->linked_to) {
 
375
 
 
376
        if (prop->linked_to != NULL)
372
377
                g_free (prop->linked_to);
 
378
 
 
379
        if (link != prop->linked_to)
373
380
                prop->linked_to = link;
374
 
        }
375
381
}