~ubuntu-branches/ubuntu/wily/gpaste/wily

« back to all changes in this revision

Viewing changes to src/libgpaste/core/gpaste-history.c

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2014-10-09 22:12:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20141009221219-yn2j96i5usplgw00
Tags: 3.12.3.1-1
* Imported Upstream version 3.12.3.1
* Standards-Version 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
                        GPasteUpdateTarget target,
122
122
                        guint              position)
123
123
{
 
124
    g_paste_history_save (self);
 
125
 
124
126
    g_signal_emit (self,
125
127
                   signals[UPDATE],
126
128
                   0, /* detail */
922
924
{
923
925
    Data *data = user_data;
924
926
 
925
 
    gchar *txt = alloca (text_len + 1);
926
 
    memcpy(txt, text, text_len);
927
 
    txt[text_len] = '\0';
 
927
    G_PASTE_CLEANUP_FREE gchar *txt = g_strndup (text, text_len);
928
928
    switch (data->state)
929
929
    {
930
930
    case IN_HISTORY: