diff options
author | Slava Monich <slava.monich@jolla.com> | 2014-06-19 15:15:19 +0300 |
---|---|---|
committer | Andres Gomez <agomez@igalia.com> | 2014-06-19 15:18:57 +0300 |
commit | f7317f8fdc21e357393e355e937d98a1b1a769c1 (patch) | |
tree | 97ffbd7298e2956d1b82b627bd202e92f1b69f9f | |
parent | f68fee114c4e378475e6b03ddf697614466c0606 (diff) | |
download | libmediaart-f7317f8fdc21e357393e355e937d98a1b1a769c1.tar.gz |
extract: Fixed crash in QCoreApplication::applicationFilePath
QCoreApplication keeps pointers to argv and argc
so they better be static.
https://bugzilla.gnome.org/show_bug.cgi?id=731854
-rw-r--r-- | libmediaart/extractqt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmediaart/extractqt.cpp b/libmediaart/extractqt.cpp index 2dabd04..d39ddd7 100644 --- a/libmediaart/extractqt.cpp +++ b/libmediaart/extractqt.cpp @@ -53,8 +53,8 @@ static gint max_width_in_bytes = 0; void media_art_plugin_init (gint max_width) { - int argc = 1; - char *argv[2] = { (char*) "libmediaart", NULL }; + static int argc = 1; + static char *argv[2] = { (char*) "libmediaart", NULL }; g_return_if_fail (max_width >= 0); |