~ubuntu-branches/ubuntu/intrepid/pidgin/intrepid-security

« back to all changes in this revision

Viewing changes to pidgin/plugins/spellchk.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-04-04 02:18:00 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404021800-qaa00wom38gd7xus
Tags: 1:2.4.1-1ubuntu1
* Sync with Debian, remaining Ubuntu changes; (LP: #211769)
  - debian/control:
    + Set Maintainer to Ubuntu Core Developers.
    + Add build-deps on liblaunchpad-integration-dev, intltool,
      libnm-glib-dev (for --enable-nm)
    + Drop build-deps on libsilc-1.1-2-dev | libsilc-dev (>= 1.1.1) as
      this library is in universe.
    + Drop the libpurple0 recommends on libpurple-bin.
    + Add a gaim transitionnal package for upgrades.
    + Moved finch's libx11-6 dependency to Suggests
  - Ship compatibility symlinks via debian/gaim.links
  - debian/rules:
    + Pass --enable-nm to configure to enable NetworkManager support
    + Pass --disable-silc to configure to disable silc support even if
      it's installed in the build environment.
    + Add X-Ubuntu-Gettext-Domain to the desktop file and update the
      translation templates in common-install-impl::.
    + Added necessary arguments to dh_shlibdeps for finch
  - Update debian/prefs.xml to set the notify plugin prefs
    /plugins/gtk/X11/notify/* and set /pidgin/plugins/loaded to load
    the notify plugin
  - debian/patches:
    + 02_lpi for LP integration
    + 04_let_crasher_for_apport to stop catching the SIGSEGV signal
      and let apport handle it
    + 05_default_to_irc_ubuntu_com to set the default IRC
      server to irc.ubuntu.com.
    + 70_autoconf patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        GtkTextMark *mark_insert_start;
65
65
        GtkTextMark *mark_insert_end;
66
66
 
67
 
        const gchar *word;
 
67
        gchar *word;
68
68
        gboolean inserting;
69
69
        gboolean ignore_correction;
70
70
        gboolean ignore_correction_on_send;
265
265
                                g_value_unset(&val1);
266
266
                                g_value_unset(&val2);
267
267
 
 
268
                                g_free(lowerword);
268
269
                                g_free(foldedword);
269
270
                                return outword;
270
271
                        }
274
275
 
275
276
                } while (gtk_tree_model_iter_next(GTK_TREE_MODEL(model), &iter));
276
277
        }
 
278
        g_free(lowerword);
277
279
        g_free(foldedword);
278
280
 
279
281
        return NULL;
292
294
                        G_SIGNAL_MATCH_DATA,
293
295
                        0, 0, NULL, NULL,
294
296
                        spell);
 
297
        g_free(spell->word);
295
298
        g_free(spell);
296
299
}
297
300
 
440
443
        /* Move backwards to the beginning of the word. */
441
444
        spellchk_backward_word_start(&start);
442
445
 
 
446
        g_free(spell->word);
443
447
        spell->word = gtk_text_iter_get_text(&start, &end);
444
448
 
445
449
        /* Hack because otherwise typing things like U.S. gets difficult
484
488
        }
485
489
        g_free(tmp);
486
490
 
 
491
        g_free(spell->word);
487
492
        spell->word = NULL;
488
493
 
489
494
        return replaced;
504
509
 
505
510
        spell->inserting = TRUE;
506
511
 
 
512
        g_free(spell->word);
507
513
        spell->word = NULL;
508
514
 
509
515
        gtk_text_buffer_move_mark(buffer, spell->mark_insert_start, iter);
561
567
        place = gtk_text_iter_get_offset(&pos);
562
568
 
563
569
        if ((place + 1) != spell->pos) {
 
570
                g_free(spell->word);
564
571
                spell->word = NULL;
565
572
                return;
566
573
        }
574
581
        spell->ignore_correction_on_send = TRUE;
575
582
 
576
583
        spell->inserting = FALSE;
 
584
        g_free(spell->word);
577
585
        spell->word = NULL;
578
586
}
579
587