~canonical-dx-team/unity/unity.fix-ql-losing-focus

« back to all changes in this revision

Viewing changes to src/QuicklistMenuItemCheckmark.cpp

  • Committer: Neil Jagdish Patel
  • Date: 2011-02-19 14:21:02 UTC
  • mto: This revision was merged to the branch mainline in revision 882.
  • Revision ID: neil.patel@canonical.com-20110219142102-bwh5ihael3ag4obq
plug a million leaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
 
246
246
  _normalTexture[0] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
247
247
  _normalTexture[0]->Update (bitmap);
 
248
  delete bitmap;
248
249
 
249
250
  // draw normal, checked version
250
251
  cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
286
287
 
287
288
  _normalTexture[1] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
288
289
  _normalTexture[1]->Update (bitmap);
 
290
  delete bitmap;
289
291
 
290
292
  // draw active/prelight, unchecked version
291
293
  cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
316
318
 
317
319
  _prelightTexture[0] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
318
320
  _prelightTexture[0]->Update (bitmap);
 
321
  delete bitmap;
319
322
 
320
323
  // draw active/prelight, checked version
321
324
  cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
366
369
 
367
370
  _prelightTexture[1] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
368
371
  _prelightTexture[1]->Update (bitmap);
 
372
  delete bitmap;
369
373
 
370
374
  // finally clean up
371
375
  delete _cairoGraphics;