~ubuntu-branches/ubuntu/raring/qemu-kvm/raring

« back to all changes in this revision

Viewing changes to cursor.c

  • Committer: Serge Hallyn
  • Date: 2011-12-06 22:40:24 UTC
  • mfrom: (1.2.8)
  • Revision ID: serge.hallyn@ubuntu.com-20111206224024-x6bw4wnn65pgf55v
Tags: 1.0+noroms-0ubuntu1
* New upstream release
* Remaining changes from upstream:
  - removed all binary roms and tests/pi_10.com
* debian/qemu-kvm.links: qemu is now called qemu-system-i386, don't symlink
  it
* remove patches applied upstream:
  - debian/patches/vpc.patch
  - debian/patches/e1000-Dont-set-the-Capabilities-List-bit.patch
  - debian/patches/CVE-2011-4111.patch
* replace default-to-tcg.patch with simpler fallback-to-tcg.patch
* keep remaining patches:
  - larger_default_ram_size.patch
  - CVE-2011-2212-virtqueue-indirect-overflow.patch
  - qemuifup-fix-paths.patch
  - dont-try-to-hotplug-cpu.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    QEMUCursor *c;
99
99
    int datasize = width * height * sizeof(uint32_t);
100
100
 
101
 
    c = qemu_mallocz(sizeof(QEMUCursor) + datasize);
 
101
    c = g_malloc0(sizeof(QEMUCursor) + datasize);
102
102
    c->width  = width;
103
103
    c->height = height;
104
104
    c->refcount = 1;
117
117
    c->refcount--;
118
118
    if (c->refcount)
119
119
        return;
120
 
    qemu_free(c);
 
120
    g_free(c);
121
121
}
122
122
 
123
123
int cursor_get_mono_bpl(QEMUCursor *c)