Mageia Bugzilla – Attachment 1493 Details for
Bug 4408
metacity segfaults in oxygen theme (gtk2)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch (for testing)
oxygen-gtk.diff (text/plain), 776 bytes, created by
Hugo Pereira Da Costa
on 2012-02-05 15:27:12 CET
(
hide
)
Description:
patch (for testing)
Filename:
MIME Type:
Creator:
Hugo Pereira Da Costa
Created:
2012-02-05 15:27:12 CET
Size:
776 bytes
patch
obsolete
>diff --git a/src/oxygenqtsettings.cpp b/src/oxygenqtsettings.cpp >index 4ed5401..35af7c1 100644 >--- a/src/oxygenqtsettings.cpp >+++ b/src/oxygenqtsettings.cpp >@@ -447,9 +447,10 @@ namespace Oxygen > // put existing default path in a set > PathSet searchPath; > gchar** gtkSearchPath; >- int nElements; >+ int nElements(0); > gtk_icon_theme_get_search_path( gtk_icon_theme_get_default(), >kSearchPath, &nElements ); >- for( int i=0; i<nElements; i++ ) { searchPath.insert( gtkSearchPath[i] ); } >+ for( int i=0; i<nElements; i++ ) >+ { if( gtkSearchPath[i] ) searchPath.insert( gtkSearchPath[i] ); } > g_free( gtkSearchPath ); > > // add kde's path. Loop is reversed because added path must be prepended.
diff --git a/src/oxygenqtsettings.cpp b/src/oxygenqtsettings.cpp index 4ed5401..35af7c1 100644 --- a/src/oxygenqtsettings.cpp +++ b/src/oxygenqtsettings.cpp @@ -447,9 +447,10 @@ namespace Oxygen // put existing default path in a set PathSet searchPath; gchar** gtkSearchPath; - int nElements; + int nElements(0); gtk_icon_theme_get_search_path( gtk_icon_theme_get_default(), >kSearchPath, &nElements ); - for( int i=0; i<nElements; i++ ) { searchPath.insert( gtkSearchPath[i] ); } + for( int i=0; i<nElements; i++ ) + { if( gtkSearchPath[i] ) searchPath.insert( gtkSearchPath[i] ); } g_free( gtkSearchPath ); // add kde's path. Loop is reversed because added path must be prepended.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4408
:
1492
|
1493
|
1494
|
1495
|
1496
|
1497
|
1499