~ubuntu-branches/ubuntu/precise/freerdp/precise-updates

« back to all changes in this revision

Viewing changes to libfreerdp-core/mppc.c

  • Committer: Package Import Robot
  • Author(s): Otavio Salvador, Jeremy Bicha
  • Date: 2012-02-11 10:34:05 UTC
  • mfrom: (1.1.7) (9.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120211103405-mk0gjhjn70eeyxul
Tags: 1.0.1-1
[ Jeremy Bicha ]
* New upstream release. Closes: #659332.
* Updated symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
1239
1239
{
1240
1240
        struct rdp_mppc* ptr;
1241
1241
 
1242
 
        ptr = (struct rdp_mppc *) xmalloc(sizeof (struct rdp_mppc));
 
1242
        ptr = (struct rdp_mppc*) xmalloc(sizeof(struct rdp_mppc));
 
1243
 
1243
1244
        if (!ptr)
1244
1245
        {
1245
1246
                printf("mppc_new(): system out of memory\n");
1246
1247
                return NULL;
1247
1248
        }
1248
1249
 
1249
 
        ptr->history_buf = (uint8 *) xmalloc(RDP6_HISTORY_BUF_SIZE);
1250
 
        ptr->offset_cache = (uint16 *) xzalloc(RDP6_OFFSET_CACHE_SIZE);
 
1250
        ptr->history_buf = (uint8*) xmalloc(RDP6_HISTORY_BUF_SIZE);
 
1251
        ptr->offset_cache = (uint16*) xzalloc(RDP6_OFFSET_CACHE_SIZE);
 
1252
 
1251
1253
        if (!ptr->history_buf)
1252
1254
        {
1253
1255
                printf("mppc_new(): system out of memory\n");
1257
1259
 
1258
1260
        ptr->history_ptr = ptr->history_buf;
1259
1261
        ptr->history_buf_end = ptr->history_buf + RDP6_HISTORY_BUF_SIZE - 1;
 
1262
 
1260
1263
        return ptr;
1261
1264
}
1262
1265
 
1279
1282
                rdp->mppc->history_buf = NULL;
1280
1283
                rdp->mppc->history_ptr = NULL;
1281
1284
        }
 
1285
 
 
1286
        if (rdp->mppc->offset_cache)
 
1287
        {
 
1288
                xfree(rdp->mppc->offset_cache);
 
1289
        }
 
1290
 
1282
1291
        xfree(rdp->mppc);
1283
1292
}