Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc

Issue 99190: Unref the GC so it's destroy after we create it. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h" 5 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 is_selected ? &kDescriptionSelectedTextColor : 462 is_selected ? &kDescriptionSelectedTextColor :
463 &kDescriptionTextColor, 463 &kDescriptionTextColor,
464 std::string(" - ")); 464 std::string(" - "));
465 465
466 gdk_draw_layout(drawable, gc, 466 gdk_draw_layout(drawable, gc,
467 kIconAreaWidth + actual_content_width, content_y, 467 kIconAreaWidth + actual_content_width, content_y,
468 layout_); 468 layout_);
469 } 469 }
470 } 470 }
471 471
472 g_object_unref(gc);
473
472 return TRUE; 474 return TRUE;
473 } 475 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698