~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to libgimpbase/gimpwire.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-10-06 13:30:41 UTC
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: james.westby@ubuntu.com-20081006133041-3panbkcanaymfsmp
Tags: upstream-2.6.0
ImportĀ upstreamĀ versionĀ 2.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
  handler = g_hash_table_lookup (wire_ht, &type);
64
64
 
65
65
  if (! handler)
66
 
    handler = g_new0 (GimpWireHandler, 1);
 
66
    handler = g_slice_new0 (GimpWireHandler);
67
67
 
68
68
  handler->type         = type;
69
69
  handler->read_func    = read_func;
432
432
 
433
433
      if (tmp > 0)
434
434
        {
435
 
          data[i] = g_new (gchar, tmp);
 
435
          data[i] = g_try_new (gchar, tmp);
 
436
 
 
437
          if (! data[i])
 
438
            {
 
439
              g_printerr ("%s: failed to allocate %u bytes\n", G_STRFUNC, tmp);
 
440
              return FALSE;
 
441
            }
436
442
 
437
443
          if (! _gimp_wire_read_int8 (channel,
438
444
                                      (guint8 *) data[i], tmp, user_data))