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

« back to all changes in this revision

Viewing changes to src/QuicklistMenuItemRadio.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:
247
247
 
248
248
  _normalTexture[0] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
249
249
  _normalTexture[0]->Update (bitmap);
 
250
  delete bitmap;
250
251
 
251
252
  // draw normal, enabled version
252
253
  cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
275
276
 
276
277
  _normalTexture[1] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
277
278
  _normalTexture[1]->Update (bitmap);
 
279
  delete bitmap;
278
280
 
279
281
  // draw active/prelight, unchecked version
280
282
  cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
305
307
 
306
308
  _prelightTexture[0] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
307
309
  _prelightTexture[0]->Update (bitmap);
 
310
  delete bitmap;
308
311
 
309
312
  // draw active/prelight, unchecked version
310
313
  cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
338
341
 
339
342
  _prelightTexture[1] = nux::GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
340
343
  _prelightTexture[1]->Update (bitmap);
 
344
  delete bitmap;
341
345
 
342
346
  // finally clean up
343
347
  delete _cairoGraphics;